home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 June / PCWorld_2007-06_cd.bin / zabezpeceni / spyeraser / spyeraser.exe / {app} / SpyEraser.dll / 2110 / SCRIPTS.JS < prev    next >
Text File  |  2007-04-23  |  178KB  |  5,380 lines

  1.  
  2.  
  3.  
  4. /////////////////////localization variables start////////////////////////////////
  5.  
  6.  
  7.  
  8.  
  9. /////////////////////localization variables end//////////////////////////////////
  10.  
  11. var prevSize=530;
  12. var rtpm_event_type=0;
  13. var rtpm_blocked_event_type=0;
  14. var scan_in_progress=false;
  15. var b_isReg = true; //bydefault we will assume it to be reg. version
  16. var scan_cleanin_progress=false;
  17. var sumpinstalled=false;
  18. var rbinstalled=false;
  19.  
  20. function setcleaninprogress()
  21. {
  22.     scan_cleanin_progress=true;
  23. }
  24.  
  25. function setcleaninabort()
  26. {
  27.     scan_cleanin_progress=false;
  28. }
  29.  
  30. function setcleaningtext(strmsg)
  31. {
  32.     
  33.     document.getElementById('settext').innerText=strmsg;
  34. }
  35.  
  36. function setcleaningmessage(strmsg)
  37. {
  38.     
  39.     document.getElementById('setmsg').innerText=strmsg;
  40. }
  41.  
  42. function showHelp()
  43. {
  44.     //alert('chandan');
  45.     
  46.     
  47.         document.all('showhelpid').click();
  48.         
  49. }
  50.  
  51. function showupdatespage()
  52. {
  53.     //alert('chandan');
  54.     
  55.     if(!scan_in_progress)
  56.         document.all('check_for_updates').click();
  57. }
  58.  
  59. function Array_push() {
  60.     var A_p = 0
  61.     for (A_p = 0; A_p < arguments.length; A_p++) {
  62.         this[this.length] = arguments[A_p]
  63.     }
  64.     return this.length
  65. }
  66.  
  67. if (typeof Array.prototype.push == "undefined") {
  68.     Array.prototype.push = Array_push
  69. }
  70. function JS_ShowRegButton()
  71. {
  72. //this will set the b_isReg to false and update the current pagelayout to showhide the reg. button
  73.     
  74.     b_isReg = false;
  75.     document.getElementById("IS_REGISTERED_VERSION").style.visibility='hidden';    
  76.     return false;
  77. }
  78.  
  79.  
  80. function JS_HideRegButton()
  81. {
  82. //this will set the b_isReg to false and update the current pagelayout to showhide the reg. button
  83.     
  84.     b_isReg = true;
  85.     document.getElementById("IS_REGISTERED_VERSION").style.visibility='visible';    
  86.     return true;
  87. }
  88.  
  89. // Added by Priya for show and hide the register now button on the left panel
  90. function JS_SetRegFlag(breg)
  91. {
  92. //this will set the b_isReg to false and update the current pagelayout to showhide the reg. button
  93.     
  94.     if (parseInt(breg)==1)
  95.     {
  96.         //alert("true");
  97.         document.getElementById("IS_REGISTERED_VERSION").style.visibility='hidden';
  98.         
  99.     }
  100.     else
  101.     {
  102.         //alert("flase");
  103.         document.getElementById("IS_REGISTERED_VERSION").style.visibility='visible';
  104.         
  105.         
  106.         
  107.     }
  108.         
  109.     return breg;
  110. }
  111.  
  112. // Added by Priya for show and hide the Power Suite button in the middlw of overview page
  113. function SetPowerFlag(SE,SUMP,RB)
  114. {
  115.     //SE=0
  116.     //status = NOT INSTALLED 
  117.     //Action =DOWNLOAD NOW
  118.     
  119.     //SE=1
  120.     //status = UNREGISTERED
  121.     //Action =REGISTER NOW
  122.     
  123.     //SE=2
  124.     //status = REGISTERED
  125.     //Action 
  126.     
  127.     
  128.     if(parseInt(SE)==0)
  129.     {
  130.        // document.all['isSERegistered'].src="txt_notinstalled.png";
  131.         document.all['isSERegistered'].innerHTML="<img src=\"txt_notinstalled.png\">";
  132.         document.all['isSEProtection'].src="txt_protection.png";
  133.         document.all['isSEReIcon'].src="icon_spyEraser_notinstalled.png";
  134.         //document.all['isSEtxt'].src="txt_spyeraser.png";
  135.         document.all['isSEtxt'].innerHTML="<img src=\"txt_spyeraser.png\">"
  136.         document.all['isSEDownload'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"seclick\" src=\"btn_downloadNow_normal.png\" onmouseover=\"this.src='btn_downloadNow_hover.png'\" onmouseout=\"this.src='btn_downloadNow_normal.png'\" onmousedown=\"this.src='btn_downloadNow_down.png'\" border=0 ></a>";
  137.         
  138.     }
  139.     else if (parseInt(SE)==1)
  140.     {
  141.         
  142.         document.all['isSERegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"seclick\").click();' hideFocus=true><img  src=\"txt_unregistered.png\" onmouseover=\"this.src='txt_unregistered_h.png'\" onmouseout=\"this.src='txt_unregistered.png'\" onmousedown=\"this.src='txt_unregistered_d.png'\" border=0 ></a>";
  143.         //document.all['isSERegistered'].innerHTML="<img  src=\"txt_unregistered.png\" border=0 >";
  144.         document.all['isSEProtection'].src="txt_protection_installed.png";
  145.         document.all['isSEReIcon'].src="icon_spyEraser_notinstalled.png";
  146.         //document.all['isSEtxt'].src="txt_spyeraser_installed.png";
  147.         //document.all['isSEtxt'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"seclick\").click();' hideFocus=true><img  src=\"txt_spyeraser_installed.png\" onmouseover=\"this.src='txt_spyeraser_h.png'\" onmouseout=\"this.src='txt_spyeraser_installed.png'\" onmousedown=\"this.src='txt_spyeraser_d.png'\" border=0 ></a>";
  148.         document.all['isSEtxt'].innerHTML="<img  src=\"txt_spyeraser_installed.png\" border=0 >";
  149.         
  150.         document.all['isSEDownload'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"seclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>";
  151.         
  152.     }
  153.     else if (parseInt(SE)==2)
  154.     {
  155.         //document.all['isSERegistered'].src="txt_registered.png";
  156.         document.all['isSERegistered'].innerHTML="<img src=\"txt_registered.png\">";
  157.         document.all['isSEProtection'].src="txt_protection_installed.png";
  158.         document.all['isSEReIcon'].src="icon_spyEraser_registered.png";
  159.        // document.all['isSEtxt'].src="txt_spyeraser_installed.png";
  160.         document.all['isSEtxt'].innerHTML="<img src=\"txt_spyeraser_installed.png\">";
  161.         document.all['isSEDownload'].innerHTML=" ";
  162.         
  163.     }
  164.     
  165.     if(parseInt(SUMP)==0)
  166.     {
  167.         //document.all['sumprow'].style.bgColor="#f8fafc";
  168.         window.document.all['sumprow'].style.background = '#f8fafc';
  169.         window.document.all['sumprow1'].style.background = '#f8fafc';
  170.         window.document.all['sumprow2'].style.background = '#f8fafc';
  171.         document.all['isSUMRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"sumpclick\").click();' hideFocus=true><img  src=\"txt_notinstalled.png\" onmouseover=\"this.src='txt_notinstalled_h.png'\" onmouseout=\"this.src='txt_notinstalled.png'\" onmousedown=\"this.src='txt_notinstalled_d.png'\" border=0 ></a>";
  172.         document.all['isSUMPPerformance'].src="txt_performance.png";
  173.         document.all['isSUMPReIcon'].src="icon_sump_notinstalled.png";
  174.         document.all['isSUMPtxt'].innerHTML="<img  src=\"txt_speedupmypc.png\"  border=0 >";
  175.         document.all['isSUMDownload'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"sumpclick\" src=\"btn_downloadNow_normal.png\" onmouseover=\"this.src='btn_downloadNow_hover.png'\" onmouseout=\"this.src='btn_downloadNow_normal.png'\" onmousedown=\"this.src='btn_downloadNow_down.png'\" border=0 ></a>";
  176.         
  177.     }
  178.     else if (parseInt(SUMP)==1)
  179.     {
  180.         
  181.         sumpinstalled=true;
  182.         document.all['isSUMRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"sumpclick\").click();' hideFocus=true><img  src=\"txt_unregistered.png\" onmouseover=\"this.src='txt_unregistered_h.png'\" onmouseout=\"this.src='txt_unregistered.png'\" onmousedown=\"this.src='txt_unregistered_d.png'\" border=0 ></a>";
  183.         document.all['isSUMPPerformance'].src="txt_performance_installed.png";
  184.         document.all['isSUMPReIcon'].src="icon_sump_registered.png";
  185.         //document.all['isSUMPtxt'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"sumpclick\").click();' hideFocus=true><img  src=\"txt_speedupmypc_installed.png\" onmouseover=\"this.src='txt_speedupmypc_h.png'\" onmouseout=\"this.src='txt_speedupmypc.png'\" onmousedown=\"this.src='txt_speedupmypc_installed.png'\" border=0 ></a>";
  186.         
  187.         document.all['isSUMPtxt'].innerHTML="<img  src=\"txt_speedupmypc_installed.png\"  >";
  188.         //document.all['isSUMDownload'].innerHTML="chandan";
  189.        document.all['isSUMDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"sumpclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>";
  190.        //document.all['isRBDownload'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"rbclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>";
  191.         
  192.     }
  193.     else if (parseInt(SUMP)==2)
  194.     {
  195.         sumpinstalled=true;
  196.         document.all['isSUMRegistered'].innerHTML="<img  src=\"txt_registered.png\">";
  197.         document.all['isSUMPPerformance'].src="txt_performance_installed.png";
  198.         document.all['isSUMPReIcon'].src="icon_sump_registered.png";
  199.         document.all['isSUMPtxt'].innerHTML="<img  src=\"txt_speedupmypc_installed.png\">";
  200.         document.all['isSUMDownload'].innerHTML=" ";
  201.         
  202.     }
  203.     
  204.     if(parseInt(RB)==0)
  205.     {
  206.         window.document.all['rbrow'].style.background = '#f8fafc';
  207.         window.document.all['rbrow1'].style.background = '#f8fafc';
  208.         window.document.all['rbrow2'].style.background = '#f8fafc';
  209.         rbinstalled=false;
  210.         document.all['isRBRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"rbclick\").click();' hideFocus=true><img  src=\"txt_notinstalled.png\" onmouseover=\"this.src='txt_notinstalled_h.png'\" onmouseout=\"this.src='txt_notinstalled.png'\" onmousedown=\"this.src='txt_notinstalled_d.png'\" border=0 ></a>";
  211.         document.all['isRBStabile'].src="txt_stability_notInstalled.png";
  212.         document.all['isRBReIcon'].src="icon_registry_booster_notin.png";
  213.         document.all['isRBtxt'].innerHTML="<img  src=\"txt_registrybooster_notInstalled.png\" >";
  214.         document.all['isRBDownload'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"rbclick\" src=\"btn_downloadNow_normal.png\" onmouseover=\"this.src='btn_downloadNow_hover.png'\" onmouseout=\"this.src='btn_downloadNow_normal.png'\" onmousedown=\"this.src='btn_downloadNow_down.png'\" border=0 ></a>";
  215.         
  216.     }
  217.     else if (parseInt(RB)==1)
  218.     {
  219.         rbinstalled=true;
  220.         document.all['isRBRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"rbclick\").click();' hideFocus=true><img  src=\"txt_unregistered.png\" onmouseover=\"this.src='txt_unregistered_h.png'\" onmouseout=\"this.src='txt_unregistered.png'\" onmousedown=\"this.src='txt_unregistered_d.png'\" border=0 ></a>";
  221.         document.all['isRBStabile'].src="txt_stability.png";
  222.         document.all['isRBReIcon'].src="icon_registry_booster_regis.png";
  223.         //document.all['isRBtxt'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"rbclick\").click();' hideFocus=true><img  src=\"txt_registrybooster.png\" onmouseover=\"this.src='txt_registrybooster_h.png'\" onmouseout=\"this.src='txt_registrybooster.png'\" onmousedown=\"this.src='txt_registrybooster_d.png'\" border=0 ></a>";
  224.         document.all['isRBtxt'].innerHTML="<img  src=\"txt_registrybooster.png\" >";
  225.         document.all['isRBDownload'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"rbclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>";
  226.         
  227.     }
  228.     else if (parseInt(RB)==2)
  229.     {
  230.         rbinstalled=true;
  231.         document.all['isRBRegistered'].innerHTML="<img  src=\"txt_registered.png\">";
  232.         document.all['isRBStabile'].src="txt_stability.png";
  233.         document.all['isRBReIcon'].src="icon_registry_booster_regis.png";
  234.         document.all['isRBtxt'].innerHTML="<img  src=\"txt_registrybooster.png\">";
  235.         document.all['isRBDownload'].innerHTML=" ";
  236.         
  237.     }
  238.     
  239.     
  240. }
  241.  
  242.  
  243. // Added by Priya for show and hide the Power Suite button in the middlw of overview page
  244.  
  245. function scanprogress_showscanoption(scanoption,memory,files,keys,cookies)
  246. {
  247.    
  248.    
  249.     if(parseInt(scanoption)==5)
  250.     {
  251.         if(parseInt(cookies)==1)
  252.         {
  253.         
  254.             document.all['cScan'].src="cs_text_black_bg.png";
  255.         }
  256.         
  257.     }
  258.     else if(parseInt(scanoption)==1)
  259.     {
  260.        if(parseInt(cookies)==1)
  261.        {
  262.             var str;
  263.             str=parseInt(document.all['scanprogress_cookies_infected'].innerHTML);
  264.             
  265.             if(str>0)
  266.             {
  267.                 document.all['cScan'].src="cs_text_black.png";
  268.             }
  269.             else
  270.             {
  271.                 document.all['cScan'].src="ci_text_ok.png";
  272.             }
  273.         }
  274.         
  275.         document.all['mScan'].src="mps_text_black_bg.png";
  276.         
  277.         
  278.     }
  279.     
  280.     else if((parseInt(scanoption)==3) || (parseInt(scanoption)==4))
  281.     {
  282.       
  283.            if(parseInt(memory)==1)
  284.            {
  285.                 var str;
  286.                 str=parseInt(document.all['scanprogress_memory_infected'].innerHTML);
  287.                 
  288.                 if(str>0)
  289.                 {
  290.                     document.all['mScan'].src="mps_text_black.png";
  291.                 }
  292.                 else
  293.                 {
  294.                     document.all['mScan'].src="mpi_text_ok.png";
  295.                 }
  296.           }
  297.           
  298.           if(parseInt(cookies)==1)
  299.            {
  300.                 var str;
  301.                 str=parseInt(document.all['scanprogress_cookies_infected'].innerHTML);
  302.                 
  303.                 if(str>0)
  304.                 {
  305.                     document.all['cScan'].src="cs_text_black.png";
  306.                 }
  307.                 else
  308.                 {
  309.                     document.all['cScan'].src="ci_text_ok.png";
  310.                 }
  311.             }
  312.         
  313.           
  314.         
  315.         
  316.          document.all['rkScan'].src="rks_text_black_bg.png";
  317.      
  318.     }
  319.     
  320.     else if(parseInt(scanoption)==2)
  321.     {
  322.        
  323.         
  324.          if(parseInt(memory)==1)
  325.          {
  326.             var str;
  327.             str=parseInt(document.all['scanprogress_memory_infected'].innerHTML);
  328.             
  329.             if(str>0)
  330.             {
  331.                 document.all['mScan'].src="mps_text_black.png";
  332.             }
  333.             else
  334.             {
  335.                 document.all['mScan'].src="mpi_text_ok.png";
  336.             }
  337.          }
  338.         
  339.          if(parseInt(keys)==1)
  340.           {
  341.             var str;
  342.             str=parseInt(document.all['scanprogress_registries_infected'].innerHTML);
  343.             
  344.             if(str>0)
  345.             {
  346.                  document.all['rkScan'].src="rks_text_black.png";
  347.             }
  348.             else
  349.             {
  350.                 document.all['rkScan'].src="rki_text_ok.png";
  351.             } 
  352.             
  353.           } 
  354.           
  355.            if(parseInt(cookies)==1)
  356.            {
  357.                 var str;
  358.                 str=parseInt(document.all['scanprogress_cookies_infected'].innerHTML);
  359.                 
  360.                 if(str>0)
  361.                 {
  362.                     document.all['cScan'].src="cs_text_black.png";
  363.                 }
  364.                 else
  365.                 {
  366.                     document.all['cScan'].src="ci_text_ok.png";
  367.                 }
  368.             }
  369.             
  370. //          if(parseInt(files)==1)
  371. //          {
  372. //            var str;
  373. //            str=parseInt(document.all['scanprogress_files_infected'].innerHTML);
  374. //            
  375. //            if(str>0)
  376. //            {
  377. //                  document.all['fScan'].src="fs_text_black.png";
  378. //            }
  379. //            else
  380. //            {
  381. //                 document.all['fScan'].src="fi_text_ok.png";
  382. //            }
  383. //          }
  384. //        
  385.         
  386.         document.all['fScan'].src="fs_text_black_bg.png";
  387.         
  388.     }
  389. }
  390.  
  391.     
  392.  
  393.  
  394. // Added by Priya for show and hide the Power Suite button on the left panel
  395. function JS_SetSCFlag(besc)
  396. {
  397.     
  398.     if (parseInt(besc)==1)
  399.     {
  400.         // Temporary Comment
  401.         document.getElementById("IS_UPGRADE_SYSTEMCARE").style.visibility='visible';
  402.         
  403.         
  404.     }
  405.     else
  406.     {
  407.     // Temporary Comment
  408.         document.getElementById("IS_UPGRADE_SYSTEMCARE").style.visibility='hidden';
  409.         
  410.     }
  411.         
  412.     return besc;
  413. }
  414.  
  415. //function monitors_deactivate(breg1)
  416. //{    
  417. //    if (parseInt(breg1)==0)
  418. //    {
  419. //        //alert("true");
  420. //        //document.getElementById("Scandetailsdiv").style.visibility='hidden';
  421. //        //document.getElementById("Messagespan").style.visibility='visible';
  422. //        
  423. //    }
  424. //    
  425. //        
  426. //    return breg1;
  427. //}
  428.  
  429.  
  430.  
  431. ///////////////////////
  432.  
  433. function resizeElements(){
  434.     return false;
  435.     var change=document.body.offsetHeight-prevSize;
  436.     if(document.all['system_scroll_1']){
  437.         document.all['system_scroll_1'].style.height=(250+change)+"px";
  438.     }
  439.     if(document.all['scanresults_scroll_2']){
  440.         //document.all['scanresults_scroll_2'].style.height=(125+change)+"px";
  441.     }
  442.     if(document.all['system_scroll_2']){
  443.         //document.all['system_scroll_2'].style.height=(200+change)+"px";
  444.     }
  445.     if(document.all['application_scroll_1']){
  446.         //document.all['application_scroll_1'].style.height=(250+change)+"px";
  447.     }
  448.     if(document.all['application_scroll_2']){
  449.         //document.all['application_scroll_2'].style.height=(200+change)+"px";
  450.     }
  451.     if(document.all['internet_scroll_1']){
  452.         //document.all['internet_scroll_1'].style.height=(250+change)+"px";
  453.     }
  454.     if(document.all['internet_scroll_2']){
  455.         document.all['internet_scroll_2'].style.height=(200+change)+"px";
  456.     }
  457.     if(document.all['scanhistory_scroll_1']){
  458.         document.all['scanhistory_scroll_1'].style.height=(250+change)+"px";
  459.     }
  460.     if(document.all['scanhistory_scroll_2']){
  461.         document.all['scanhistory_scroll_2'].style.height=(200+change)+"px";
  462.     }
  463.     if(document.all['quarantine_scroll_1']){
  464.         document.all['quarantine_scroll_1'].style.height=(250+change)+"px";
  465.     }
  466.     if(document.all['quarantine_scroll_2']){
  467.         document.all['quarantine_scroll_2'].style.height=(200+change)+"px";
  468.     }
  469.     if(document.all['ignorelist_scroll_1']){
  470.         document.all['ignorelist_scroll_1'].style.height=(250+change)+"px";
  471.     }
  472.     if(document.all['ignorelist_scroll_2']){
  473.         document.all['ignorelist_scroll_2'].style.height=(200+change)+"px";
  474.     }
  475.     //if(document.all['scanprogress_table']){
  476.     //    document.all['scanprogress_table'].style.height=(150+change)+"px";
  477.     //}    
  478.     //if(document.all['scanprogress_scroll']){
  479.         //document.all['scanprogress_scroll'].style.height=(75+change)+"px";
  480.     //}
  481.     if(document.all['scanresults_scroll_1']){
  482.         //document.all['scanresults_scroll_1'].style.height=(180+change)+"px";
  483.     }
  484.     
  485. }
  486.  
  487. function managecheckbox()
  488. {
  489.     if (document.getElementById('chkCompletesystemScan').checked)
  490.     {
  491.         document.getElementById('chkScanMemory').checked=true;
  492.         document.getElementById('chkScanFiles').checked=true;
  493.         document.getElementById('chkScanKeys').checked=true;
  494.         document.getElementById('chkScanCookies').checked=true;    
  495.     }
  496.     else
  497.     {
  498.     
  499.         document.getElementById('chkScanMemory').checked=false;
  500.         document.getElementById('chkScanFiles').checked=false;
  501.         document.getElementById('chkScanKeys').checked=false;
  502.         document.getElementById('chkScanCookies').checked=false;    
  503.     }
  504.     document.getElementById('storecheckbox').click();
  505. }
  506.  
  507. function oncheckboxclick()
  508. {
  509.     if (document.getElementById('chkScanMemory').checked &&  document.getElementById('chkScanFiles').checked && document.getElementById('chkScanKeys').checked && document.getElementById('chkScanCookies').checked)
  510.     {
  511.         document.getElementById('chkCompletesystemScan').checked=true;
  512.     }
  513.     else
  514.     {
  515.         document.getElementById('chkCompletesystemScan').checked=false;
  516.     }
  517.     document.getElementById('storecheckbox').click();
  518. }
  519.  
  520. function schedulemanagecheckbox()
  521. {
  522.     if (document.getElementById('schedulechkCompletesystemScan').checked)
  523.     {
  524.         document.getElementById('schedulechkScanMemory').checked=true;
  525.         document.getElementById('schedulechkScanFiles').checked=true;
  526.         document.getElementById('schedulechkScanKeys').checked=true;
  527.         document.getElementById('schedulechkScanCookies').checked=true;    
  528.     }
  529.     else
  530.     {
  531.     
  532.         document.getElementById('schedulechkScanMemory').checked=false;
  533.         document.getElementById('schedulechkScanFiles').checked=false;
  534.         document.getElementById('schedulechkScanKeys').checked=false;
  535.         document.getElementById('schedulechkScanCookies').checked=false;    
  536.     }
  537.     document.getElementById('schedulestorecheckbox').click();
  538. }
  539.  
  540. function onschedulecheckboxclick()
  541. {
  542.     if (document.getElementById('schedulechkScanMemory').checked &&  document.getElementById('schedulechkScanFiles').checked && document.getElementById('schedulechkScanKeys').checked && document.getElementById('schedulechkScanCookies').checked)
  543.     {
  544.         document.getElementById('schedulechkCompletesystemScan').checked=true;
  545.     }
  546.     else
  547.     {
  548.         document.getElementById('schedulechkCompletesystemScan').checked=false;
  549.     }
  550.     document.getElementById('schedulestorecheckbox').click();
  551. }
  552. ////function to show page navigation
  553.  
  554.  // Shows The Content for first tab
  555.  function showSummaryPage()
  556.  { 
  557.          //prevSize=document.body.offsetWidth;
  558.     // alert("Priya");
  559.      
  560.      if(!scan_in_progress)
  561.     {
  562.         document.all("innerpage").innerHTML=document.frames[0].document.all("summarypage").innerHTML;
  563.         document.getElementById('summary_page').click();
  564.         //document.getElementById('startscan_page').click();
  565.         window.document.images.taboverview.src='tab_overview_dark.png';
  566.         window.document.images.tabscan.src='tab_spywareScan_normal.png';
  567.         window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  568.         window.document.images.tabsettings.src='tab_settings_normal.png';
  569.         
  570.         resizeElements();
  571.          document.getElementById('registertrial_page').click();
  572.         
  573.     }
  574.  
  575. function showCleaningPage()
  576.  { 
  577.     
  578.      if(!scan_in_progress)
  579.     {
  580.         document.all("innerpage").innerHTML=document.frames[0].document.all("cleaningpage").innerHTML;
  581. //        document.getElementById('summary_page').click();
  582. //        //document.getElementById('startscan_page').click();
  583. //        window.document.images.taboverview.src='tab_overview_dark.png';
  584. //        window.document.images.tabscan.src='tab_spywareScan_normal.png';
  585. //        window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  586. //        window.document.images.tabsettings.src='tab_settings_normal.png';
  587. //        
  588.         resizeElements();
  589.         document.getElementById('registertrial_page').click();
  590.         
  591.     }
  592.  
  593.  
  594.  
  595. // Shows The Content for second tab
  596.  function showStartScanPage(){ 
  597.     // alert("Priya1");
  598.      if(!scan_in_progress)
  599.      {
  600.         window.document.images.taboverview.src='tab_overview_normal.png';
  601.         window.document.images.tabscan.src='tab_spywareScan_dark.png';
  602.         window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  603.         window.document.images.tabsettings.src='tab_settings_normal.png';
  604.  
  605.         
  606.          document.all("innerpage").innerHTML=document.frames[0].document.all("startscanpage").innerHTML;
  607.          document.getElementById('startscan_page').click();
  608.          //document.getElementById('registertrial_page').click();
  609.          //resizeElements();
  610.          document.getElementById('registertrial_page').click();
  611.          
  612.      }
  613. };
  614. // Shows The Content for Third tab
  615.  function showRTInternetMonitorsPage(){
  616.     
  617.      if(!scan_in_progress)
  618.      {
  619.          
  620.         window.document.images.taboverview.src='tab_overview_normal.png';
  621.         window.document.images.tabscan.src='tab_spywareScan_normal.png';
  622.         window.document.images.tabliveguard.src='tab_liveGuard_dark.png';
  623.         window.document.images.tabsettings.src='tab_settings_normal.png';
  624.         
  625.          document.all("innerpage").innerHTML=document.frames[0].document.all("internetmonitorspage").innerHTML;
  626.          document.getElementById('internetmonitors_page').click();
  627.          resizeElements();
  628.          
  629.          document.getElementById('registertrial_page').click();
  630.  
  631.      }
  632. };
  633.  
  634. // Shows The Content for fourth tab
  635.  
  636.  
  637. function  showupdatespage()
  638. {
  639.  
  640. document.getElementById('updates_page').click();
  641. }
  642.  
  643. function showSettingsPage(){
  644.     
  645.      if(!scan_in_progress)
  646.      {
  647.          //showSettingsAutoUpdatePage();
  648.          showSettingsGeneralPage
  649.          return false;
  650.          document.all("innerpage").innerHTML=document.frames[0].document.all("settingspage").innerHTML;
  651.          document.getElementById('settings_page').click();
  652.         
  653.          resizeElements();
  654.           document.getElementById('registertrial_page').click();
  655.      }
  656. };
  657.  
  658.  function showScanHistoryPage(){
  659.      if(!scan_in_progress)
  660.      {
  661.          document.all("innerpage").innerHTML=document.frames[0].document.all("scanhistorypage").innerHTML;
  662.          document.getElementById('scanhistory_page').click();
  663.          resizeElements();
  664.          document.getElementById('registertrial_page').click();
  665.      }
  666. };
  667. // Added By Priya for showing Register page
  668.  function showRegisterPage()
  669.  {
  670.     
  671.          document.getElementById('Register_page').click();
  672.         // resizeElements();
  673.     
  674. };
  675.  
  676.  function showSystemCarePage()
  677.  {
  678.     
  679.          document.getElementById('SystemCare_page').click();
  680.         // resizeElements();
  681.     
  682. };
  683.  
  684.  function showAboutPage()
  685.  {
  686.      if(!scan_in_progress)
  687.      {
  688.         document.getElementById('about_page').click();
  689.      }
  690.  };
  691.  
  692.  
  693.  function showScanResultsPage()
  694. {
  695.     
  696.     if(!scan_in_progress)
  697.      {
  698.         
  699.          window.document.images.taboverview.src='tab_overview_normal.png';
  700.         window.document.images.tabscan.src='tab_spywareScan_dark.png';
  701.         window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  702.         window.document.images.tabsettings.src='tab_settings_normal.png';
  703.  
  704.         if(document.all("scanhistory_viewdetails"))
  705.         {
  706.             //if(document.all("scanhistory_viewdetails").disabled!=true) // Commented by priya
  707.             {
  708.                 document.all("innerpage").innerHTML = document.frames[0].document.all("scanresultspage").innerHTML;
  709.                 document.all('scanresults_page').click();
  710.             }
  711.         }
  712.         else
  713.         {
  714.             document.all("innerpage").innerHTML=document.frames[0].document.all("scanresultspage").innerHTML;
  715.             document.all('scanresults_page').click();
  716.         }
  717.         
  718.         
  719.             
  720.         resizeElements();
  721.         document.getElementById('registertrial_page').click();
  722.      }
  723. }
  724.  
  725.  function showScanProgressPage()
  726.  {
  727.      if(!scan_in_progress)
  728.      {
  729.          if (document.getElementById('chkScanMemory').checked || document.getElementById('chkScanFiles').checked || document.getElementById('chkScanKeys').checked || document.getElementById('chkScanCookies').checked)
  730.          {
  731.             
  732.          }
  733.          else
  734.          {
  735.           //alert("Please select some items to be scanned.");
  736.            document.getElementById('alert_window').click();
  737.            return false;
  738.          }
  739.              document.all("innerpage").innerHTML=document.frames[0].document.all("scanprogresspage").innerHTML;
  740.              document.getElementById('scanprogress_page').click();
  741.              resizeElements();
  742.              document.getElementById('registertrial_page').click();
  743.         
  744.      }
  745. };
  746.  
  747.  function showScanProgressPagesystemtray(){
  748.  
  749.      if(!scan_in_progress)
  750.      {
  751.             
  752.              window.document.images.taboverview.src='tab_overview_normal.png';
  753.         window.document.images.tabscan.src='tab_spywareScan_dark.png';
  754.         window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  755.         window.document.images.tabsettings.src='tab_settings_normal.png';
  756.  
  757.              
  758.              document.all("innerpage").innerHTML=document.frames[0].document.all("scanprogresspage").innerHTML;
  759.              document.getElementById('scanprogress_page').click();
  760.              resizeElements();
  761.              document.getElementById('registertrial_page').click();
  762.      }
  763. };
  764.  
  765.  function showRealTimePage(){
  766.      if(!scan_in_progress)
  767.      {
  768.          document.all("innerpage").innerHTML=document.frames[0].document.all("realtimepage").innerHTML;
  769.          document.getElementById('realtime_page').click();
  770.          resizeElements();
  771.          document.getElementById('registertrial_page').click();
  772.      }
  773. };
  774.  function showRTApplicationMinitorsPage(){
  775.      if(!scan_in_progress)
  776.      {
  777.          document.all("innerpage").innerHTML=document.frames[0].document.all("applicationmonitorspage").innerHTML;
  778.          document.getElementById('applicationmonitors_page').click();
  779.          resizeElements();
  780.          document.getElementById('registertrial_page').click();
  781.      }    
  782. };
  783.  
  784.  function showRTSystemMonitorsPage(){
  785.      if(!scan_in_progress)
  786.      {
  787.          document.all("innerpage").innerHTML=document.frames[0].document.all("systemmonitorspage").innerHTML;
  788.          document.getElementById('systemmonitors_page').click();
  789.          resizeElements();
  790.          document.getElementById('registertrial_page').click();
  791.      }
  792.  };
  793.  function showRTViewAllEventsPage()
  794. {     
  795.      if(!scan_in_progress)
  796.      {
  797.          document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeeventspage").innerHTML;
  798.          document.getElementById('realtimeevents_page').click();
  799.          resizeElements();
  800.          document.getElementById('registertrial_page').click();
  801.      }
  802. };
  803.  function showRTViewBlockedEventsPage(){
  804.      if(!scan_in_progress)
  805.      {
  806.          document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeevents_blocked_page").innerHTML;
  807.          document.getElementById('realtimeevents_blocked_page').click();
  808.          resizeElements();
  809.          document.getElementById('registertrial_page').click();
  810.      }
  811. };
  812.  
  813.  function showSettingsAutoUpdatePage(){
  814.      if(!scan_in_progress)
  815.      {
  816.          window.document.images.taboverview.src='tab_overview_normal.png';
  817.         window.document.images.tabscan.src='tab_spywareScan_normal.png';
  818.         window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  819.         window.document.images.tabsettings.src='tab_settings_dark.png';
  820.         
  821.          document.all("innerpage").innerHTML=document.frames[0].document.all("settingsautoupdatepage").innerHTML;
  822.          document.getElementById('autoupdate_page').click();
  823.          resizeElements();
  824.           document.getElementById('registertrial_page').click();
  825.      }
  826. };
  827.  function showSettingsRTProtectionPage(){
  828.      if(!scan_in_progress)
  829.      {
  830.          document.all("innerpage").innerHTML=document.frames[0].document.all("settingsrtprotectionpage").innerHTML;
  831.          document.getElementById('settingsrtprotection_page').click();
  832.          resizeElements();
  833.           document.getElementById('registertrial_page').click();
  834.      }
  835. };
  836.  function showSettingsAlertsPage(){
  837.      if(!scan_in_progress)
  838.      {
  839.          document.all("innerpage").innerHTML=document.frames[0].document.all("settingsalertspage").innerHTML;
  840.          document.getElementById('settingsalerts_page').click();
  841.          resizeElements();
  842.           document.getElementById('registertrial_page').click();
  843.      }
  844. };
  845.  
  846. // Priya For Security Restriction
  847.  function showSettingsRestrictions(nIndex){
  848.      if(!scan_in_progress)
  849.      {
  850.         rtpm_event_type=nIndex;
  851.          document.all("innerpage").innerHTML=document.frames[0].document.all("settingsrestrictions").innerHTML;
  852.          document.getElementById('settingsrestrictions_page').click();
  853.          resizeElements();
  854.           document.getElementById('registertrial_page').click();
  855.      }
  856. };
  857.  
  858. function showSettingsGeneralPage(){
  859.      if(!scan_in_progress)
  860.      {
  861.          window.document.images.taboverview.src='tab_overview_normal.png';
  862.         window.document.images.tabscan.src='tab_spywareScan_normal.png';
  863.         window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  864.         window.document.images.tabsettings.src='tab_settings_dark.png';
  865.     
  866.          document.all("innerpage").innerHTML=document.frames[0].document.all("settingsgeneralpage").innerHTML;
  867.          document.getElementById('settingsgeneral_page').click();
  868.          resizeElements();
  869.           document.getElementById('registertrial_page').click();
  870.      }
  871. };
  872. ////
  873. function showSettingsCommunityPage(){
  874.     if(!scan_in_progress)
  875.      {
  876.      document.all("innerpage").innerHTML=document.frames[0].document.all("settingscommunitypage").innerHTML;
  877.      document.getElementById('settingscommunity_page').click();
  878.      resizeElements();
  879.       document.getElementById('registertrial_page').click();
  880.      }
  881. };
  882.  function showSettingsSpywareScanPage(){
  883.     if(!scan_in_progress)
  884.      {
  885.          document.all("innerpage").innerHTML=document.frames[0].document.all("settingsspywarescanpage").innerHTML;
  886.          document.getElementById('settingsspywarescan_page').click();
  887.          resizeElements();
  888.           document.getElementById('registertrial_page').click();
  889.      }
  890. };
  891.  
  892.  function showUpdatepage(){
  893.      if(!scan_in_progress)
  894.      {
  895.          //document.all("innerpage").innerHTML=document.frames[0].document.all("Updatepage").innerHTML;
  896.          document.getElementById('SettingsUpdatepage').click();
  897.          resizeElements();
  898.           document.getElementById('registertrial_page').click();
  899.      }
  900. };
  901.  
  902.  function showQuarantinePage(){
  903.      if(!scan_in_progress)
  904.      {
  905.          document.all("innerpage").innerHTML=document.frames[0].document.all("quarantinepage").innerHTML;
  906.          document.getElementById('quarantine_page').click();
  907.          resizeElements();
  908.           document.getElementById('registertrial_page').click();
  909.      }
  910. };
  911. function showRestorePage(){
  912.      if(!scan_in_progress)
  913.      {
  914.          document.all("innerpage").innerHTML=document.frames[0].document.all("restorepage").innerHTML;
  915.          document.getElementById('RestorePage').click();
  916.          resizeElements();
  917.           document.getElementById('registertrial_page').click();
  918.      }
  919. };
  920.  function showIgnoreListPage(){
  921.      if(!scan_in_progress)
  922.      {
  923.          document.all("innerpage").innerHTML=document.frames[0].document.all("ignorelistpage").innerHTML;
  924.          document.getElementById('ignorelist_page').click();
  925.          resizeElements();
  926.          document.getElementById('registertrial_page').click();
  927.      }
  928. };
  929.  function showSchedulePage(){ 
  930.      if(!scan_in_progress)
  931.      {
  932.          window.document.images.taboverview.src='tab_overview_normal.png';
  933.         window.document.images.tabscan.src='tab_spywareScan_dark.png';
  934.         window.document.images.tabliveguard.src='tab_liveGuard_normal.png';
  935.         window.document.images.tabsettings.src='tab_settings_normal.png';
  936.  
  937.          
  938.          document.all("innerpage").innerHTML=document.frames[0].document.all("scheduletaskpage").innerHTML;
  939.          document.getElementById('scheduletask_page').click();
  940.          resizeElements();
  941.          document.getElementById('registertrial_page').click();
  942.      }
  943. };
  944. function showSettingsRealtimePage()
  945.  {
  946.      if(!scan_in_progress)
  947.      {
  948.          document.all("innerpage").innerHTML=document.frames[0].document.all("startscanpage").innerHTML;
  949.          document.getElementById('startscan_page').click();
  950.          resizeElements();
  951.           document.getElementById('registertrial_page').click();
  952.      }
  953. };
  954.  
  955. function showAutoUpdateStatusPage(){
  956.     if(!scan_in_progress)
  957.      {
  958.          //document.all("innerpage").innerHTML=document.frames[0].document.all("autoupdatestatuspage").innerHTML;
  959.          document.getElementById('autoupdatestatus_page').click();
  960.          resizeElements();
  961.           document.getElementById('registertrial_page').click();
  962.      }
  963. };
  964.  
  965.  function showScanResultsDialogPage(){
  966.      if(!scan_in_progress)
  967.      {
  968.          document.all("innerpage").innerHTML=document.frames[0].document.all(" scanresultsdialogpage").innerHTML;
  969.          document.getElementById(' scanresultsdialog_page').click();
  970.          resizeElements();
  971.           document.getElementById('registertrial_page').click();
  972.      }
  973. };
  974.  
  975. function showrealtimeeventsPage(nIndex)
  976. {
  977.     if(!scan_in_progress)
  978.     {
  979.         ///All monitors allowed events                    nIndex = 0
  980.         ///All Application monitors allowed events            nIndex = 1
  981.         ///All internet monitors allowed events            nIndex = 2
  982.         ///All System monitors allowed events        nIndex = 3
  983.         rtpm_event_type=nIndex;
  984.         document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeeventspage").innerHTML;
  985.         document.getElementById('realtimeevents_page').click();
  986.         resizeElements();  
  987.          document.getElementById('registertrial_page').click();
  988.     }
  989. };
  990.  
  991.  
  992. function blockprograms(nIndex)
  993. {
  994.     if(!scan_in_progress)
  995.     {
  996.         ///All monitors allowed events                    nIndex = 0
  997.         ///All Application monitors allowed events            nIndex = 1
  998.         ///All internet monitors allowed events            nIndex = 2
  999.         ///All System monitors allowed events        nIndex = 3
  1000.         rtpm_event_type=nIndex;
  1001.         document.all("innerpage").innerHTML=document.frames[0].document.all("divblockprograms").innerHTML;
  1002.         document.getElementById('blockprograms_page').click();
  1003.         resizeElements();  
  1004.          document.getElementById('registertrial_page').click();
  1005.     }
  1006. };
  1007.  
  1008.  
  1009. function showrealtimeblockedeventsPage(nIndex)
  1010. {
  1011.     if(!scan_in_progress)
  1012.      {
  1013.         ///All monitors allowed events                    nIndex = 0
  1014.         ///All Application monitors allowed events            nIndex = 1
  1015.         ///All internet monitors allowed events            nIndex = 2
  1016.         ///All System monitors allowed events        nIndex = 3
  1017.         rtpm_blocked_event_type=nIndex;
  1018.         document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeevents_blocked_page").innerHTML;
  1019.         document.getElementById('realtimeevents_blocked_page').click();
  1020.         resizeElements(); 
  1021.          document.getElementById('registertrial_page').click(); 
  1022.      }
  1023. };
  1024. function showSuspectDialog()
  1025. {
  1026.     if(!scan_in_progress)
  1027.      {
  1028.         document.getElementById('suspect_page').click();
  1029.      }
  1030. };
  1031.  
  1032.  
  1033.  
  1034. function checkUncheckAll(theElement) 
  1035. {
  1036.     var theForm = theElement.form, z = 0;
  1037.     for(z=0; z<theForm.length;z++)
  1038.     {
  1039.         if(theForm[z].type == 'checkbox')
  1040.         {
  1041.             theForm[z].checked = theElement.checked;
  1042.         }
  1043.     }
  1044. }
  1045.  
  1046. function getMonitor_event_type()
  1047. {
  1048.     return rtpm_blocked_event_type;
  1049. }
  1050. function SetScanProgressState(state)
  1051. {
  1052.     if(state=="true")
  1053.         scan_in_progress=true;
  1054.     else
  1055.         scan_in_progress=false;
  1056. }
  1057. ///Summary page Script
  1058. //===================
  1059. var summary_bad_count=0;
  1060. var summary_dount_count=0;
  1061.  
  1062. function initializevar()
  1063. {
  1064.     summary_bad_count=0;
  1065.     
  1066.     summary_dount_count=0;
  1067. }
  1068. function summary_setStatus(id,iconid,status,daysbefore,iconstatus)
  1069. {
  1070.   
  1071.     if(id=="summary_scanresults")     
  1072.      {
  1073.         
  1074.        
  1075.         var arrStatus = status.split(",");
  1076.          
  1077.        
  1078.         if (arrStatus.length>1)
  1079.             { 
  1080.             if(iconstatus=="BAD")
  1081.             {
  1082.                 summary_bad_count++;
  1083.                 document.all[iconid].src="icon_small_error.png"; 
  1084.                 document.all[id].innerHTML=arrStatus[0];
  1085.                 document.all['summary_scanresults_erased_icon'].src="icon_error_fixed_disabled.png"; 
  1086.                 document.all['summary_scanresults_erased'].innerHTML=arrStatus[1];
  1087.             }
  1088.             else if(iconstatus=="OK")
  1089.             {
  1090.                 document.all[iconid].src="icon_error_disabled.png";
  1091.                 document.all[id].innerHTML=arrStatus[0];
  1092.                 document.all['summary_scanresults_erased_icon'].src="icon_small_error_fixed.png";
  1093.                 document.all['summary_scanresults_erased'].innerHTML=arrStatus[1];
  1094.             }
  1095.             else
  1096.             {
  1097.                 summary_dount_count++;
  1098.                 document.all[iconid].src="icon_small_error.png";
  1099.                 document.all[id].innerHTML=arrStatus[0];
  1100.                 document.all['summary_scanresults_erased_icon'].src="icon_error_fixed_disabled.png";
  1101.                 document.all['summary_scanresults_erased'].innerHTML=arrStatus[1];
  1102.             }
  1103.         }
  1104.         else
  1105.         {
  1106.                
  1107.                 document.all[iconid].src="icon_error_disabled.png"; 
  1108.                 document.all[id].innerHTML="0 Infections Found";
  1109.                 document.all['summary_scanresults_erased_icon'].src="icon_error_fixed_disabled.png"; 
  1110.                 document.all['summary_scanresults_erased'].innerHTML="0 Infections Erased";
  1111.         }
  1112.         
  1113.  
  1114.         
  1115.         
  1116.      }
  1117.     else
  1118.      
  1119.     {
  1120.          if(id=="summary_lastscan")     
  1121.          {
  1122.            
  1123.          // alert(daysbefore);
  1124.             
  1125.              document.all[id].innerHTML=status;
  1126.              if(daysbefore=="-1")
  1127.              {
  1128.             // alert("d");
  1129.                 document.all['scan_days'].innerHTML="<font color=red>No Scan has been performed yet</font>";
  1130.              }
  1131.              else
  1132.              {
  1133.                 document.all['scan_days'].innerHTML="<font color=#29934F>"+daysbefore+"</font>";
  1134.              }
  1135.             
  1136.          }
  1137.     
  1138.         return;
  1139.      
  1140.     } 
  1141.     
  1142.     if (id=="summary_scanschedule")
  1143.     {
  1144.       //  alert(iconstatus);
  1145.         if(iconstatus=="BAD")
  1146.         {
  1147.              summary_bad_count++;
  1148.             document.all[iconid].src="smallcross.png"; 
  1149.             //document.all[id].innerHTML='<font color=#0e529e>'+status+'</font>';
  1150.             document.all[id].innerHTML='<font color=darkred>'+status+'</font>';
  1151.         }else if(iconstatus=="OK")
  1152.         {
  1153.               document.all[iconid].src="smalltick.png";
  1154.             document.all[id].innerHTML="Scan Schedule "+status;
  1155.         }else
  1156.         {
  1157.              summary_dount_count++;
  1158.             document.all[iconid].src="smallcross.png";
  1159.             document.all[id].innerHTML=status;
  1160.         }
  1161.         
  1162.     } 
  1163.     else if (id!="summary_scanresults" && id!="summary_lastscan" )    
  1164.     {
  1165.       //  alert(id);
  1166.        // alert(iconstatus);
  1167.         if(iconstatus=="BAD")
  1168.         {
  1169.              summary_bad_count++;
  1170.             document.all[iconid].src="smallcross.png"; 
  1171.             //document.all[id].innerHTML='<font color=#0e529e>'+status+'</font>';
  1172.             document.all[id].innerHTML='<font color=darkred>'+status+'</font>';
  1173.         }else if(iconstatus=="OK")
  1174.         {
  1175.               document.all[iconid].src="smalltick.png";
  1176.             document.all[id].innerHTML=status;
  1177.         }else
  1178.         {
  1179.              summary_dount_count++;
  1180.             document.all[iconid].src="smallcross.png";
  1181.             document.all[id].innerHTML=status;
  1182.         }
  1183.      }  
  1184.      else if(id=="summary_lastscan")     
  1185.      {
  1186.       alert(id);
  1187.         alert(status);
  1188.         alert("priya");
  1189.         
  1190.          if(iconstatus=="BAD")
  1191.         {
  1192.             summary_bad_count++;
  1193.             document.all[iconid].src="se_icon_noscan.png"; 
  1194.             document.all[id].innerHTML="<font color='red'>"+status+"</font>";
  1195.         }else if(iconstatus=="OK")
  1196.         {
  1197.             document.all[iconid].src="se_icon_details.png";
  1198.             document.all[id].innerHTML=status;
  1199.         }else
  1200.         {
  1201.             summary_dount_count++;
  1202.             document.all[iconid].src="se_icon_summary.png";
  1203.             document.all[id].innerHTML=status;
  1204.         }
  1205.      }
  1206.      
  1207.      
  1208.     
  1209.     // Commented by priya "No need at main page"
  1210.     
  1211.     
  1212.     /////////////////////////
  1213. }
  1214.  
  1215. function summary_sethealthStatus(health)
  1216. {
  1217.    // alert(health);
  1218.     health=parseInt(health);
  1219.     if(health==1)
  1220.     {
  1221.         document.all['summary_status1_icon'].src="se_top_left_menu_graph2.png"; 
  1222.     }
  1223.     else if(health==2)
  1224.     {
  1225.         document.all['summary_status1_icon'].src="se_top_left_menu_graph3.png"; 
  1226.     }
  1227.     else
  1228.     {
  1229.         document.all['summary_status1_icon'].src="se_top_left_menu_graph1.png"; 
  1230.     }
  1231. }
  1232.  
  1233. function Scan_Details(nMS,nMI,nFS,nFI,nRS,nRI,nCS,nCI)
  1234. {
  1235.     
  1236.     if((nMS>0) && (nMI>0))
  1237.     {
  1238.         document.all[sMIId].src="icon_small_error.png";
  1239.     }
  1240.     else if((nMS>0) && (nMI==0))
  1241.     {
  1242.        
  1243.         document.all[sMIId].src="icon_small_error_fixed.png";
  1244.     }
  1245.     
  1246.     if((nFS>0) && (nFI>0))
  1247.     {
  1248.         document.all[sFIId].src="icon_small_error.png";
  1249.     }
  1250.     else if((nFS>0) && (nFI==0))
  1251.     {
  1252.          document.all[sFIId].src="icon_small_error_fixed.png";
  1253.     }
  1254.     
  1255.     if((nRS>0) && (nRI>0))
  1256.     {
  1257.         document.all[sRIId].src="icon_small_error.png";
  1258.     }
  1259.     else if((nRS>0) && (nRI==0))
  1260.     {
  1261.         document.all[sRIId].src="icon_small_error_fixed.png";
  1262.     }
  1263.     
  1264.     if((nCS>0) && (nCI>0))
  1265.     {
  1266.         document.all[sCIId].src="icon_small_error.png";
  1267.     
  1268.     }
  1269.     else if((nCS>0) && (nCI==0))
  1270.     {
  1271.         document.all[sCIId].src="icon_small_error_fixed.png";
  1272.     }
  1273.  
  1274. }
  1275.  
  1276.  
  1277.  
  1278.  
  1279. function adddefinitionsdate(definitionsdate)
  1280. {
  1281.     document.all['definitionsdatetime'].innerHTML=definitionsdate;
  1282. };
  1283. ///Start Scan Page Script
  1284. //===================
  1285.  
  1286. function startscan_setLastScan(string)
  1287. {    
  1288.     if(string==null || string=="")
  1289.     {
  1290.         
  1291.         string=ID_NO_SCAN;
  1292.     
  1293.         //document.all("startscan_viewdetails").style.visibility='hidden';
  1294.         document.all("startscan_lastscan_div1").style.visibility='visible';
  1295.         //document.all("startscan_lastscan_div1").style.visibility='hidden';
  1296.         document.all("startscan_lastscan_div").style.visibility='hidden';
  1297.         document.all("startscan_lastscan_div_details").style.visibility='visible';
  1298.         
  1299.     
  1300.     
  1301.     }
  1302.     else
  1303.     {
  1304.         document.all("startscan_lastscan_div1").style.visibility='hidden';
  1305.         document.all("startscan_lastscan_div").style.visibility='visible';
  1306.         document.all("startscan_lastscan_div_details").style.visibility='visible';
  1307.     }
  1308.     
  1309. }
  1310.  
  1311. ///Scan Result Page
  1312. //===================
  1313.     var scan_item_details = new Array()
  1314.  
  1315.     function scanresult_clear()
  1316.     {
  1317.         var theTable = document.getElementById('scan_result_table');
  1318.         var lastRow = theTable.rows.length;
  1319.         for(i=0; i<lastRow ; i++)
  1320.         {
  1321.             
  1322.             theTable.deleteRow(0); 
  1323.             
  1324.         }
  1325.     }
  1326.     
  1327.     function event_clear()
  1328.     {
  1329.         var theTable = document.getElementById('realtimeevent_table');
  1330.         var lastRow = theTable.rows.length;
  1331.         for(i=0; i<lastRow ; i++)
  1332.         {
  1333.             
  1334.             theTable.deleteRow(0); 
  1335.             
  1336.         }
  1337.     }
  1338.     
  1339. //    function show_quarantine(AName,sType,SName)
  1340. //    {
  1341. //        document.all["Q_Name"].innerHTML=SName;
  1342. //        document.all["Q_Type"].innerHTML=sType;
  1343. //        document.all["Q_Author"].innerHTML=AName;
  1344. //       
  1345. //    }
  1346. //    
  1347. //    function show_Restore(AName,sType,SName)
  1348. //    {
  1349. //        
  1350. //        document.all["R_Name"].innerHTML=SName;
  1351. //        document.all["R_Type"].innerHTML=sType;
  1352. //        document.all["R_Author"].innerHTML=AName;
  1353. //       
  1354. //    }
  1355.     
  1356.     
  1357.     
  1358.     function showScanresult_ScanDescription()
  1359.     {
  1360.         
  1361.         var elem=event.srcElement;
  1362.         var id;
  1363.         do{
  1364.             id=elem.id;
  1365.             elem=elem.parentElement;
  1366.         }while(! (document.all[id] && id.search('result')>=0));
  1367.         var row=document.all[id];        
  1368.         
  1369.         //row.style.BACKGROUND-IMAGE('gifborder_transparent.gif');
  1370.         highlightRow_Scanresult(row);
  1371.         
  1372.     }
  1373.     // Added By Priya
  1374.     function Left(str, n)
  1375.     {
  1376.     if (n <= 0)
  1377.         return "";
  1378.     else if (n > String(str).length)
  1379.         return str;
  1380.     else
  1381.         return String(str).substring(0,n);
  1382.     }
  1383.     function Right(str, n)
  1384.     {
  1385.         if (n <= 0)
  1386.             return "";
  1387.         else if (n > String(str).length)
  1388.             return str;
  1389.         else 
  1390.         {
  1391.             var iLen = String(str).length;
  1392.             return String(str).substring(iLen, iLen - n);
  1393.         }
  1394.     }
  1395.     function Mid(STRING,START,END)
  1396.     {
  1397.         if(!START){START=0};
  1398.         if(!END || END > STRING.length){END=STRING.length};
  1399.         if(END!=STRING.length){END = START + END};
  1400.         return STRING.substring(START,END);
  1401.     }    
  1402.     /////////////////////////////
  1403.  
  1404.     function toggleScanResult()
  1405.     {
  1406.         var str=event.srcElement.id;
  1407.         var index=str.replace(/.+_/,'');
  1408.         var row=document.all['result'+index];
  1409.         var tree=document.all['tree_'+index];
  1410.         //var viewhide=document.all['viewhide_'+index];
  1411.         var table=document.all['items_table_'+index];
  1412.         var spycount=document.all['spycount_'+index];
  1413.         //spycount.innerText="";
  1414.                if(row.expanded)
  1415.                 {
  1416.                     //Collapse now
  1417.                     row.expanded=false;
  1418.                     while(table.rows.length>1)
  1419.                     {
  1420.                         table.deleteRow(1);
  1421.                     }
  1422. //                    viewhide.innerHTML=ID_ALL_DET_LOC; 
  1423.                     //tree.src='collapse.png';
  1424.                 }
  1425.                 else
  1426.                 {
  1427.                     //Expand now
  1428.                     //viewhide.innerHTML=ID_HIDE_DETAILS;
  1429.                    // tree.src='expand.png';
  1430.                     var row1,cell1,cell2;
  1431.                     row.expanded=true;
  1432.                     count=0;
  1433.                     //Insert Files
  1434.                     for(var x=0;x<row.files.length;x++)
  1435.                     {
  1436.                         var file=row.files[x];
  1437.                         row1=table.insertRow();
  1438.                         cell1=row1.insertCell();
  1439.                         cell2=row1.insertCell();
  1440.                         cell1.innerHTML=' ';
  1441.                         //cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">';
  1442.                         
  1443.                         cell2.innerHTML='<font color=red>'+file.name+'</font>';
  1444.                         //cell2.innerHTML=file.name;
  1445.                         count=count+1;
  1446.                     }
  1447.                     
  1448.                     //Insert Processes
  1449.                     for(var x=0;x<row.processes.length;x++)
  1450.                     {
  1451.                         var process=row.processes[x];
  1452.                         row1=table.insertRow();
  1453.                         cell1=row1.insertCell();
  1454.                         cell2=row1.insertCell();
  1455.         //                cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">';
  1456.                         cell1.innerHTML=' ';
  1457.                         cell2.innerHTML='<font color=red>'+process.name+'</font>';
  1458.                         //cell2.innerHTML=process.name;
  1459.                         count=count+1;
  1460.                     }
  1461.                     
  1462.                     //Insert Folders
  1463.                     for(var x=0;x<row.folders.length;x++)
  1464.                     {
  1465.                         var folder=row.folders[x];
  1466.                         row1=table.insertRow();
  1467.                         cell1=row1.insertCell();
  1468.                         cell2=row1.insertCell();
  1469.         //                cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">';
  1470.                         cell1.innerHTML=' ';
  1471.                         cell2.innerHTML='<font color=red>'+folder+'</font>';
  1472.                         //cell2.innerHTML=folder;
  1473.                         count=count+1;
  1474.                     }
  1475.                     
  1476.                     //Insert Reg Keys
  1477.                     for(var x=0;x<row.regkeys.length;x++)
  1478.                     {
  1479.                         var regkey=row.regkeys[x];
  1480.                         
  1481.                         // Added By Priya
  1482.                         var breakingno=50;
  1483.                         ////////////////////
  1484.                         
  1485.                         row1=table.insertRow();
  1486.                         cell1=row1.insertCell();
  1487.                         cell2=row1.insertCell();
  1488.         //                cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">';
  1489.                         cell1.innerHTML=' ';
  1490.                         
  1491.                         // Added By Priya
  1492.                         if (regkey.length>breakingno)
  1493.                         {
  1494.                             Str1=Left(regkey,breakingno);
  1495.                             Str2=Mid(regkey,breakingno,regkey.length);
  1496.                             cell2.innerHTML='<font color=red>'+Str1 + "<br>" + Str2+'</font>';
  1497.                             //cell2.innerHTML=Str1 + "<br>" + Str2;
  1498.                             
  1499.                         }
  1500.                         
  1501.                         else
  1502.                         {
  1503.                             cell2.innerHTML='<font color=red>'+regkey+'</font>';
  1504.                             //cell2.innerHTML=regkey;
  1505.                         }
  1506.                         
  1507.                         /////////////////////////
  1508.                         count=count+1;
  1509.                         
  1510.                     }
  1511.                     
  1512.                     //Insert reg Values
  1513.                     for(var x=0;x<row.regvalues.length;x++)
  1514.                     {
  1515.                         var regvalue=row.regvalues[x];
  1516.                         row1=table.insertRow();
  1517.                         cell1=row1.insertCell();
  1518.                         cell2=row1.insertCell();
  1519.         //                cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">';
  1520.                         cell1.innerHTML=' ';
  1521.                         cell2.innerHTML='<font color=red>'+regvalue.name+'</font>';
  1522.                         //cell2.innerHTML=regvalue.name;
  1523.                         count=count+1;
  1524.                     }
  1525.                     
  1526.                     //Insert Cookies
  1527.                     for(var x=0;x<row.cookies.length;x++)
  1528.                     {
  1529.                         var cookie=row.cookies[x];
  1530.                         row1=table.insertRow();
  1531.                         cell1=row1.insertCell();
  1532.                         cell2=row1.insertCell();
  1533.                         //cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">';
  1534.                         cell1.innerHTML=' ';
  1535.                         cell2.innerHTML='<font color=red>'+cookie+'</font>';
  1536.                         //cell2.innerHTML=cookie;
  1537.                         count=count+1;
  1538.                     }
  1539.                     
  1540.                     ///////Priya To Show the total infection for each spyware in scan result page
  1541.                     //spycount.innerText=count+" Infections ";
  1542.                     ///////////////////////////////////////////////////////////////////////////////
  1543.                    
  1544.                
  1545.             
  1546.         }
  1547.     }        
  1548.     //function scanresult_addspyware(tindex,tname,tlevel,ttype,tdesc,tadvice,tstatus,tprev_status,counts)   //Priya comment for ' Show the total infection for each spyware in scan result page
  1549.     function scanresult_addspyware(tindex,tname,tlevel,ttype,tdesc,tadvice,tstatus,tprev_status,counts,totalinfected) //Added by priya Priya for Show the total infection for each spyware in scan result page
  1550.     {
  1551.         prev_row=null;
  1552.         var theTable = document.all['scan_result_table'];        
  1553.         //Added By Priya
  1554.         var lastrow = theTable.rows.length;
  1555.         ////////////////
  1556.         var row  =theTable.insertRow();
  1557.         row.setAttribute('id','result'+tindex);
  1558.         //row.setAttribute('id','result1'+tindex);
  1559.         row.tindex=tindex;
  1560.         row.tname=tname;
  1561.         row.tlevel=tlevel;
  1562.         row.ttype=ttype;
  1563.         row.tdesc=tdesc;
  1564.         row.tadvice=tadvice;
  1565.         row.tprev_status=tprev_status;
  1566.         row.onclick=showScanresult_ScanDescription;
  1567.         row.expanded=false;
  1568.         row.files=new Array();
  1569.         row.processes=new Array();
  1570.         row.folders=new Array();
  1571.         row.regkeys=new Array();
  1572.         row.regvalues=new Array();
  1573.         row.cookies=new Array();
  1574.         var cell = row.insertCell(); 
  1575.         
  1576.         
  1577.         var str=document.frames[0].document.all['scanresult_item'].innerHTML;
  1578.         str=str.replace(/imgreplace/,'se_scanResult_list_icon_x.png');
  1579.         str=str.replace(/imageid/,'img_' + tindex);
  1580.         str=str.replace(/namereplace/,tname);
  1581.         var status;
  1582.         tlevel=parseInt(tlevel);        
  1583.         if(tlevel==1){
  1584.             status=1;
  1585.             row.tslevel=ID_LOW_THREAT;
  1586.             str=str.replace(/dangerstringreplace/,ID_LOW_THREAT);
  1587.             //str=str.replace(/dangerimagereplace/,'danger_1.png');
  1588.             //str=str.replace(/dangerimagereplace/,'threadlevel1.png');
  1589.             str=str.replace(/dangerimagereplace/,'threadlevel1.gif');
  1590.         }else if(tlevel==2){
  1591.             status=1;
  1592.             row.tslevel=ID_MODERATE;
  1593.             str=str.replace(/dangerstringreplace/,ID_MODERATE);
  1594.             //str=str.replace(/dangerimagereplace/,'danger_2.png');
  1595.             //str=str.replace(/dangerimagereplace/,'threadlevel2.png');
  1596.             str=str.replace(/dangerimagereplace/,'threadlevel2.gif');
  1597.         }else if(tlevel==3){
  1598.  
  1599.             status=3;
  1600.             row.tslevel=ID_ELEVATED;
  1601.             str=str.replace(/dangerstringreplace/,ID_ELEVATED);
  1602.             //str=str.replace(/dangerimagereplace/,'danger_3.png');
  1603.             //str=str.replace(/dangerimagereplace/,'threadlevel3.png');
  1604.             str=str.replace(/dangerimagereplace/,'threadlevel3.gif');
  1605.         }else if(tlevel==4){
  1606.             status=3;
  1607.             row.tslevel=ID_HIGH;
  1608.             str=str.replace(/dangerstringreplace/,ID_HIGH);
  1609.             //str=str.replace(/dangerimagereplace/,'danger_4.png');
  1610.             //str=str.replace(/dangerimagereplace/,'threadlevel4.png');
  1611.             str=str.replace(/dangerimagereplace/,'threadlevel4.gif');
  1612.         }else {
  1613.             status=3;
  1614.             row.tslevel=ID_SEVERE;
  1615.             str=str.replace(/dangerstringreplace/,ID_SEVERE);        
  1616.             //str=str.replace(/dangerimagereplace/,'danger_5.png');
  1617.             //str=str.replace(/dangerimagereplace/,'threadlevel5.png');
  1618.             str=str.replace(/dangerimagereplace/,'threadlevel5.gif');
  1619.         }
  1620.         if(tprev_status=='1'){
  1621.             str=str.replace(/prevactionreplace/,ID_PE);
  1622.         }else if(tprev_status=='3'){
  1623.             str=str.replace(/prevactionreplace/,ID_QUA);
  1624.         }else if(tprev_status=='4'){
  1625.             str=str.replace(/prevactionreplace/,ID_REMOVED);
  1626.         }
  1627.         
  1628.         else
  1629.         {
  1630.             str=str.replace(/prevactionreplace/,' ');
  1631.         }
  1632.         str=str.replace(/replaceid/g,tindex);
  1633.         
  1634.         cell.innerHTML=str;
  1635.         
  1636.         if(tprev_status=='3'){
  1637.             document.all['select_'+tindex].style.visibility='hidden';            
  1638.         }else if(tprev_status=='4'){
  1639.             document.all['select_'+tindex].style.visibility='hidden';
  1640.         }else
  1641.         {
  1642.             document.all['select_'+tindex].selectedIndex=parseInt(tstatus);
  1643.         }
  1644.         
  1645.         document.all['select_'+tindex].selectedIndex=parseInt(tstatus);
  1646.         
  1647.         var count=parseInt(document.all['scanresults_item_count'].innerHTML);
  1648.         
  1649.         document.all['scanresults_item_count'].innerHTML=counts;
  1650.         
  1651.         
  1652.         
  1653.         //Added By Priya
  1654.         //document.all['scanresults_item_totalcount'].innerHTML=counts;
  1655.         document.all['scan_result_table'].style.cursor='hand';
  1656.         /////////////
  1657.         //document.all['scanresults_message'].style.visibility="visible";
  1658.         document.all['scanresult_continue'].disabled=false;
  1659.         //alert(document.getElementById('scanresult_restore').disabled);
  1660.         //alert(navigator.appVersion);
  1661.         //document.all['scanresult_restore'].disabled=false;
  1662.         //document.all['scanresults_learnmore'].disabled=false;
  1663.         //Added By Priya
  1664.     //    fillcolorinrow(row,lastrow);
  1665.         theTable.rows[0].click();
  1666.         // Priya To Show the total infection for each spyware in scan result page
  1667.         var spycount=document.all['spycount_'+tindex];
  1668.         spycount.innerText=totalinfected+ID_INF;
  1669.         //////////////////////////////////////////////////////////////
  1670.         
  1671.         
  1672.         
  1673.         
  1674.         
  1675.     }    
  1676.     function setcount(finalcount)
  1677.     {
  1678.         document.all['scanresults_item_count'].innerHTML=finalcount;
  1679.         //document.all['scanresults_item_totalcount'].innerHTML=finalcount;
  1680.     }
  1681.     
  1682.     function scanresult_addfile(index,name,path,size,publisher,md5,date)
  1683.     {
  1684.         if(document.all['result'+index]!=null){
  1685.             var row=document.all['result'+index];
  1686.             var file=new Object();
  1687.             file.name=name;
  1688.             file.path=path;
  1689.             file.size=size;
  1690.             file.publisher=publisher;
  1691.             file.md5=md5;
  1692.             file.date=date;
  1693.             row.files.push(file);
  1694.         }
  1695.     }
  1696.  
  1697.     function scanresult_addprocess(index,name,path,size,publisher,md5,date,pid)
  1698.     {
  1699.         if(document.all['result'+index]!=null){
  1700.             var row=document.all['result'+index];
  1701.             var processes=new Object();
  1702.             process.name=name;
  1703.             process.path=path;
  1704.             process.size=size;
  1705.             process.publisher=publisher;
  1706.             process.md5=md5;
  1707.             process.date=date;
  1708.             process.pid=pid;
  1709.             row.processes.push(process);
  1710.         }        
  1711.     }
  1712.     function scanresult_addfolder(index,path)
  1713.     {
  1714.         if(document.all['result'+index]!=null){
  1715.             var row=document.all['result'+index];
  1716.             row.folders.push(path);
  1717.         }        
  1718.     }
  1719.  
  1720.     function scanresult_addregkey(index,name)
  1721.     {
  1722.         if(document.all['result'+index]!=null){
  1723.             var row=document.all['result'+index];
  1724.             row.regkeys.push(name);
  1725.         }
  1726.     }
  1727.     function scanresult_addregvalue(index,name,rootkey,value,data)
  1728.     {
  1729.         if(document.all['result'+index]!=null){
  1730.             var row=document.all['result'+index];
  1731.             var regvalue=new Object();
  1732.             regvalue.name=name;
  1733.             regvalue.rootkey=rootkey;
  1734.             regvalue.value=value;
  1735.             regvalue.data=data;
  1736.             row.regvalues.push(regvalue);
  1737.         }
  1738.     }
  1739.     
  1740.     function scanresult_addcookie(index,path)
  1741.     {
  1742.         if(document.all['result'+index]!=null){
  1743.             var row=document.all['result'+index];
  1744.             row.cookies.push(path);
  1745.         }                
  1746.     }
  1747.  
  1748.     function scanresult_getselection(index) //returns int about combobox selection
  1749.     {
  1750.         //return document.getElementById(index).selectedIndex
  1751.         if(document.all['select_'+index]!=null){
  1752.             return document.all['select_'+index].selectedIndex;
  1753.         }
  1754.         return -1;
  1755.     }
  1756.     
  1757.     function scanresult_disablerestorepoint(bflagOSXP)//returns true or false
  1758.     {
  1759.             if (parseInt(bflagOSXP)==1)
  1760.             {
  1761.                // alert("1");
  1762.                 document.getElementById('scanresult_restore').disabled=false;
  1763.             }
  1764.             else
  1765.             {
  1766.               //  alert("0");
  1767.                 document.getElementById('scanresult_restore').disabled=true;
  1768.             }    
  1769.             
  1770.             return bflagOSXP;
  1771.             
  1772.     }
  1773.     
  1774.     function scanresult_getrestorepoint()//returns true or false
  1775.     {
  1776.             //return document.getElementById("scanresult_restore").checked;
  1777.             return document.all["scanresult_restore"].checked;
  1778.     }
  1779.     
  1780.     
  1781.     
  1782.     
  1783.     
  1784.     function scanresult_getselectedindex()//returns which row is selected
  1785.     {
  1786.         if(prev_row!=null){
  1787.             return prev_row.tindex;
  1788.         }
  1789.         return -1;
  1790.     }
  1791.     
  1792.     //Added by priya
  1793.     function highlightRow_Scanresult(row)
  1794.     {
  1795.     
  1796.         if(prev_row != row){
  1797.         if(prev_row!=null)
  1798.         {
  1799.             
  1800. //            if(prev_row.rowIndex%2==1)
  1801. //            {
  1802. //                
  1803. //                prev_row.style.backgroundColor="#f1f6ff";
  1804. //                prev_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  1805. //                prev_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  1806. //                prev_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  1807. //                prev_row.cells[0].style.borderRight = '1px solid #f1f6ff';
  1808. //            }
  1809. //            else
  1810. //            {
  1811. //                
  1812. //                prev_row.style.backgroundColor="#f1f6ff";
  1813. //                prev_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  1814. //                prev_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  1815. //                prev_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  1816. //                prev_row.cells[0].style.borderRight = '1px solid #f1f6ff';
  1817. //            }
  1818.             prev_row.style.backgroundColor="#ffffff";
  1819.         }
  1820.         
  1821.         
  1822.         
  1823.         //row.style.border="1px solid #356464";
  1824.         
  1825. //        row.cells[0].style.borderLeft = '1px solid #000000';  
  1826. //        row.cells[0].style.borderTop = '1px solid #000000';  
  1827. //        row.cells[0].style.borderBottom = '1px solid #000000';  
  1828. //        row.cells[0].style.borderRight = '1px solid #000000'; 
  1829. //        
  1830.         row.style.backgroundColor="#e6edf5";
  1831.         
  1832. //       var str=row.innerHTML;
  1833. //        str=str.replace('se_scanResult_list_icon_.png','se_scanResult_list_icon_i.png');
  1834. //        row.innerHTML=str;
  1835.         
  1836.         var imgstring =eval(window.document.images['img_' + row.tindex]);
  1837.         imgstring.src='se_scanResult_list_icon_i.png';
  1838.         
  1839.         if(prev_row!=null)    
  1840.         {
  1841.             var previmgstring=eval(window.document.images['img_' + prev_row.tindex]);
  1842.             previmgstring.src='se_scanResult_list_icon_x.png';
  1843.         }    
  1844.         //alert (row.innerHTML);
  1845.     
  1846.         //imgreplace
  1847.         
  1848.         prev_row=row;
  1849.         
  1850.         var str=getScanResultHtml(row);
  1851.         document.all['scan_desc'].innerHTML=str;
  1852.     }
  1853.     ///////////////////
  1854.         //if(prev_row != row){
  1855.         //    if(prev_row!=null){
  1856.         //        prev_row.style.backgroundColor="white";
  1857.         //    }
  1858.             //row.style.backgroundColor="#DFE6F9";//commented by chandan
  1859.             
  1860.         //    row.style.backgroundColor="#f3f7ff";
  1861.         //    prev_row=row;
  1862.         //    var str=getScanResultHtml(row);
  1863.         //    document.all['scan_desc'].innerHTML=str;
  1864.         //}
  1865.     }
  1866.     function getScanResultHtml(row){
  1867.         
  1868.          // Added By Priya
  1869.             var breakingno=15;
  1870.             var sName=row.tname;
  1871.             if (sName.length>breakingno)
  1872.             {
  1873.                 Str1=Left(sName,breakingno);
  1874.                 Str2=Mid(sName,breakingno,sName.length);
  1875.                 
  1876.                 if(Str2.length>0)
  1877.                 {
  1878.                     document.all["Desc_Name"].innerHTML=Str1 + '....';
  1879.                 }
  1880.                 else
  1881.                 {
  1882.                     document.all["Desc_Name"].innerHTML=row.tname;
  1883.                 }
  1884.               
  1885.                 
  1886.             }
  1887.             
  1888.             else
  1889.             {
  1890.                 document.all["Desc_Name"].innerHTML=row.tname;
  1891.                 //cell2.innerHTML=regkey;
  1892.             }
  1893.                         
  1894.        
  1895.         //document.all["Desc_Name"].innerHTML=row.tname;
  1896.         document.all["Desc_Type"].innerHTML=row.ttype;
  1897. //        alert(row.tslevel);
  1898. //        alert(ID_LOW_THREAT);
  1899.          if (row.tslevel==ID_LOW_THREAT)
  1900.          {
  1901.             document.all["Desc_status"].innerHTML='<font color=#076d2d>Low</font>';
  1902.          }
  1903.          if (row.tslevel==ID_MODERATE)
  1904.          {
  1905.             document.all["Desc_status"].innerHTML='<font color=#61da08>'+row.tslevel+'</font>';
  1906.          }
  1907.          if (row.tslevel==ID_ELEVATED)
  1908.          {
  1909.             document.all["Desc_status"].innerHTML='<font color=#c8c627>'+row.tslevel+'</font>';
  1910.          }
  1911.          if (row.tslevel==ID_HIGH)
  1912.          {
  1913.             document.all["Desc_status"].innerHTML='<font color=#eca331>'+row.tslevel+'</font>';
  1914.          }
  1915.          if (row.tslevel==ID_SEVERE)
  1916.          {
  1917.             document.all["Desc_status"].innerHTML='<font color=red>'+row.tslevel+'</font>';
  1918.          }
  1919.         
  1920. //        var str='<strong>'+row.tname+'</strong><br>';
  1921. //        
  1922. //        str+='<strong>'+ID_TYPE+'</strong> '+row.ttype+'<br>'; // To be localized
  1923. //        
  1924. //        str+='<strong>'+ID_THREAT_LEVEL+'</strong> '+row.tslevel+'<br><br><strong>'+ID_SPY_DESC+'</strong>'; // To be localized
  1925.         //str+=row.tdesc;
  1926.         var str=row.tdesc;
  1927. //        if(row.tadvice!=""){
  1928. //            str+='<br><br><strong>'+ID_ADVICE+'</strong>'; // To be localized
  1929. //            str+=row.tadvice;
  1930. //        }
  1931.         return str;
  1932.     }
  1933.  
  1934.  
  1935. /////Quarantined Page
  1936. //===================
  1937.  
  1938.     
  1939.  
  1940.     function quarantine_clear()
  1941.     {
  1942.         var theTable = document.getElementById('quar_result_table');
  1943.         var lastRow = theTable.rows.length;
  1944.         for(i=0; i<lastRow ; i++)
  1945.         {
  1946.             theTable.deleteRow(0); 
  1947.         }
  1948.         document.getElementById('quar_desc_table').innerText=ID_NO_QUARANTINE_LIST;
  1949.         
  1950.         if(document.getElementById('quarantine_remove_all').style.visibility == "visible")
  1951.             {
  1952.                 document.getElementById('quarantine_remove_all').style.visibility = "hidden"
  1953.             }
  1954.             //if(document.getElementById('quarantine_remove_this').style.visibility == "visible")
  1955.             //{
  1956.                 //document.getElementById('quarantine_remove_this').style.visibility = "hidden"
  1957.             //}
  1958.             //if(document.getElementById('quarantine_unquarantine_this').style.visibility == "visible")
  1959.             //{
  1960.                 //document.getElementById('quarantine_unquarantine_this').style.visibility = "hidden"
  1961.             //}
  1962.             //if(document.getElementById('quarantine_learnmore').style.visibility == "visible")
  1963.             //{
  1964.             //    document.getElementById('quarantine_learnmore').style.visibility = "hidden"
  1965.             //}
  1966.             if(document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility == "visible")
  1967.             {
  1968.                 document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility = "hidden"
  1969.             }
  1970.     }
  1971.     function quarantine_setstatus(id,status)
  1972.     {
  1973.         document.getElementById(id).innerText = status;
  1974.     }
  1975.     function showQuarresult_QuarDescription()
  1976.     {        
  1977.        
  1978.         
  1979.         //highlightRows_Quarresult(event.srcElement.id);
  1980.         
  1981.         var rowid;
  1982.         rowid=event.srcElement.id;
  1983.         var checkcount=rowid.indexOf('checkbox');
  1984.            if (checkcount!=-1)
  1985.         {
  1986.         }
  1987.         else
  1988.         {
  1989.             highlightRows_Quarresult(rowid);
  1990.         }
  1991.         
  1992.     }
  1993.  
  1994.     var quar_item_details = new Array();
  1995.     var quarantinepage_selected_item=-1;
  1996.     
  1997.     function quarantine_addspyware(name,type,date,desc,advice,author)
  1998.     {
  1999.         search_row=null;
  2000.         var theTable = document.all['quar_result_table'];
  2001.         var lastRow = theTable.rows.length;
  2002.         var row_id = parseInt(lastRow) ;
  2003.         
  2004.         
  2005.           
  2006.          
  2007.          
  2008.         if(name=="")
  2009.         {
  2010.             
  2011.             document.getElementById('quarantine_remove_all').disabled="true";
  2012.             //document.getElementById('quarantine_remove_this').disabled="true";
  2013.             //document.getElementById('quarantine_unquarantine_this').disabled="true";
  2014.             //document.getElementById('quarantine_learnmore').disabled="true";
  2015.             document.getElementById('quarantine_unquarantine_checkedchecked').disabled="true";
  2016.         
  2017.         }
  2018.         else
  2019.         {
  2020.             
  2021.             
  2022.             var Row  =theTable.insertRow();
  2023.             Row.setAttribute('id',row_id);
  2024.            
  2025.             Row.title=name;
  2026.             Row.type=type;
  2027.             Row.author=author;
  2028.            
  2029.             Row.setAttribute('height',30);
  2030.             Row.onclick=showQuarresult_QuarDescription;
  2031.             var Cell ;
  2032.             Cell = Row.insertCell(); 
  2033.             Cell.setAttribute('id',row_id);
  2034.             Cell.setAttribute('width',205);
  2035.             Cell.setAttribute('align',"left");
  2036.             Cell.setAttribute('nowrap');
  2037.             Cell.innerHTML=" <input type='checkbox' id='"+row_id+"_checkbox' onclick='uncheckmain(this);'>  " +name;
  2038.             //alert("priya");
  2039.             Cell = Row.insertCell(); 
  2040.             Cell.setAttribute('id',row_id);
  2041.             Cell.setAttribute('width',167);
  2042.             Cell.setAttribute('align',"left");
  2043.             Cell.setAttribute('nowrap');
  2044.             Cell.innerHTML=type ;
  2045.             Cell = Row.insertCell(); 
  2046.             Cell.setAttribute('id',row_id);
  2047.             Cell.setAttribute('align',"left");
  2048.             Cell.setAttribute('nowrap');
  2049.             Cell.innerHTML= date;
  2050.             
  2051.             
  2052.             //var desc_string = ""
  2053.             //desc_string  += ' '
  2054.             //desc_string  += '<strong>' +name+ '<strong><br><strong>Type:<strong>'  +type+ ' <br><strong>Description:<strong>'  +desc+ ' <br><strong>Type:<strong>'  +advice +'<br></table> '
  2055.             //quar_item_details[row_id]=desc_string
  2056.      
  2057.             if(document.getElementById('quarantine_remove_all').style.visibility == "hidden")
  2058.             {
  2059.                 document.getElementById('quarantine_remove_all').style.visibility = "visible"
  2060.             }
  2061.             //if(document.getElementById('quarantine_remove_this').style.visibility == "hidden")
  2062.             //{
  2063.                 //document.getElementById('quarantine_remove_this').style.visibility = "visible"
  2064.             //}
  2065.             //if(document.getElementById('quarantine_unquarantine_this').style.visibility == "hidden")
  2066.             //{
  2067.                 //document.getElementById('quarantine_unquarantine_this').style.visibility = "visible"
  2068.             //}
  2069.             //if(document.getElementById('quarantine_learnmore').style.visibility == "hidden")
  2070.             //{
  2071.             //    document.getElementById('quarantine_learnmore').style.visibility = "visible"
  2072.             //}
  2073.             if(document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility == "hidden")
  2074.             {
  2075.                 document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility = "visible"
  2076.             }
  2077.             
  2078.             
  2079.             document.all['quar_result_table'].style.cursor='hand';
  2080.             
  2081.             document.getElementById('quarantine_remove_all').disabled=false;
  2082.             document.getElementById('quarantine_unquarantine_checkedchecked').disabled=false;
  2083.             
  2084.              theTable.rows[0].click();
  2085.         }
  2086.     }
  2087.     
  2088.  
  2089. var quar_add_file_list = new Array();
  2090. var quar_add_file_list_show = new Array();
  2091.  
  2092.     function quarantine_addfile(index,name,path,size,publisher,md5,date)
  2093.     {
  2094.  
  2095.         if(quar_add_file_list_show[index+'_file_dis'])
  2096.         {
  2097.              quar_add_file_list_show[index+'_file_dis'] += '<tr   ><td  id="' + name + '_file_dis" height="2" valign="top"><img src="images/image.png"  style="left:0px;height:20" > ' + path + '</td></tr>'  ;
  2098.         }
  2099.         else
  2100.         {
  2101.             quar_add_file_list_show[index+'_file_dis'] =  '<tr ><td   id="' + index + '_file_dis" height="2"valign="top"><img id="'+index+'" style="left:0px;height:20" src="images/image.png" >' + path + '</td></tr>'  ;
  2102.         }
  2103.         var string = "<strong>"+ID_FILE+"</strong><br>"
  2104.         
  2105.         string +='<strong>'+ID_PATH+'</strong>'  +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>'  +publisher+ ' <br><strong>'+ID_MD+'</strong>'  +md5 +'<br><strong>'+ID_DATE+'</strong>'  +date +'<br>';
  2106.         
  2107.         if(quar_add_file_list[index+'_file'])
  2108.             quar_add_file_list[index+'_file'] += string;
  2109.         else
  2110.             quar_add_file_list[index+'_file'] = string;
  2111.     }
  2112.  
  2113. var quar_add_process = new Array();
  2114. var quar_add_proc_list_show = new Array();
  2115.  
  2116.     function quarantine_addprocess(index,name,path,size,publisher,md5,date,pid)
  2117.     {
  2118.             if(quar_add_proc_list_show[index+'_proc'])
  2119.                 quar_add_proc_list_show[index+'_proc'] += '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>'  ;
  2120.             else
  2121.                 quar_add_proc_list_show[index+'_proc'] = '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>'  ;
  2122.             
  2123.             var string = '<strong>'+ID_PROCESS+'</strong><br>';
  2124.             
  2125.             string +='<strong>'+ID_PATH+'</strong>'  +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>'  +publisher+ ' <br><strong>'+ID_MD+'</strong>'  +md5 +'<br><strong>'+ID_DATE+'</strong>'  +date +'<br><strong>'+ID_PID+'</strong>'  +pid +'<br>'
  2126.  
  2127.             if(quar_add_process[index+'_proc'])
  2128.                 quar_add_process[index+'_proc'] += string
  2129.             else
  2130.                 quar_add_process[index+'_proc'] = string
  2131.             
  2132.         }
  2133.     
  2134.     var quar_add_folder = new Array();
  2135.     var     quar_add_fold_list_show = new Array();
  2136.     function quarantine_addfolder(index,name,path)
  2137.     {
  2138.             
  2139.         if(quar_add_fold_list_show[index+'_fold_dis'])
  2140.         {
  2141.                 quar_add_fold_list_show[index+'_fold_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top">img src="images/image.png" onClick=""> ' + path + ' </td><br>'  ;
  2142.         }
  2143.         else
  2144.         {
  2145.             quar_add_fold_list_show[index+'_fold_dis'] =  '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + ' </td><br>'  ;
  2146.         }
  2147.         var string = "<strong>"+ID_FOLDER+"</strong><br>";
  2148.         string += path+ ' <br>'
  2149.  
  2150.         if(quar_add_folder[index+'_fold'])
  2151.             quar_add_folder[index+'_fold'] += string
  2152.         else
  2153.             quar_add_folder[index+'_fold'] = string
  2154.             
  2155.     }
  2156.  
  2157.     var quar_add_regkey = new Array();
  2158.     var quar_add_regkey_list_show = new Array();
  2159.     
  2160.     
  2161.     function quarantine_addregkey(index,name,rootkey)
  2162.     {
  2163.         //alert(rootkey);
  2164.             if(quar_add_regkey_list_show[index+'_regkey_dis'])
  2165.                     quar_add_regkey_list_show[index+'_regkey_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2166.             else
  2167.                     quar_add_regkey_list_show[index+'_regkey_dis'] =  '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2168.             
  2169.  
  2170.             var string ="";
  2171.             if(quar_add_regkey[index+'_regkey'])
  2172.             {
  2173.                 string +="<font size=1>"+rootkey+ ' </font><br>';
  2174.                 quar_add_regkey[index+'_regkey'] += string
  2175.             }
  2176.             else
  2177.             {
  2178.                 string = "<strong>Rootkey</strong><br>";
  2179.                 string +="<font size=1>"+rootkey+ ' </font><br>';
  2180.                 quar_add_regkey[index+'_regkey'] = string;
  2181.             }
  2182.  
  2183.             
  2184.     }
  2185.     
  2186.     var quar_add_regvalue  = new Array();
  2187.     var quar_add_regkeyval_list_show = new Array();
  2188.     function quarantine_addregvalue(index,name,rootkey,value,data)
  2189.     {
  2190.             if(quar_add_regkeyval_list_show[index+'_regkeyval_dis'])
  2191.                     quar_add_regkeyval_list_show[index+'_regkeyval_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2192.             else
  2193.                     quar_add_regkeyval_list_show[index+'_regkeyval_dis'] =  '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2194.  
  2195.             var string = "<strong>"+ID_REGKEYVAL+"</strong><br>";
  2196.             string +='<strong>'+ID_ROOTKEY+'</strong>'  +rootkey+ ' <br><strong>'+ID_VALUE+'</strong>' +value+ ' <br><strong>'+ID_DATA+'</strong>'  +data+ ' <br>';
  2197.  
  2198.             if(quar_add_regvalue[index+'_regval'])
  2199.                 quar_add_regvalue[index+'_regval'] += string
  2200.             else
  2201.                 quar_add_regvalue[index+'_regval'] = string
  2202.              
  2203.     }
  2204.     
  2205.     var quar_add_cookie = new Array();
  2206.     var quar_add_cookie_list_show = new Array();
  2207.     function quarantine_addcookie(index,name,path)
  2208.     {
  2209.             if(quar_add_cookie_list_show[index+'_cookie_dis'])
  2210.                     quar_add_cookie_list_show[index+'_cookie_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' +path + ' </td><br>'  ;
  2211.             else
  2212.                     quar_add_cookie_list_show[index+'_cookie_dis'] ='<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">'+ path + ' </td><br>'  ;
  2213.     
  2214.             var string = "<strong>"+ID_COOKIE+"</strong><br>"
  2215.             string +='<strong>'+ID_PATH+'</strong>'  +path+ ' <br>'
  2216.  
  2217.             if(quar_add_cookie[index+'_fold'])
  2218.                 quar_add_cookie[index+'_fold'] += string
  2219.             else
  2220.                 quar_add_cookie[index+'_fold'] = string
  2221.                 
  2222.     }
  2223.  
  2224.     function quarantine_ischecked(index)//returns true or false
  2225.     {
  2226.         if(document.getElementById(index).checked)
  2227.             return true;
  2228.         return false
  2229.     }
  2230.  
  2231.     
  2232.     function quarantine_getselectedindex()//returns selected row number 
  2233.     {
  2234.         
  2235.         return quarantinepage_selected_item;
  2236.         
  2237.     }    
  2238.     
  2239.     
  2240. /////////////////////////////////////////////////
  2241.  
  2242. /////Restore Page
  2243. //===================
  2244.  
  2245.     
  2246.  
  2247.     function delete_clear()
  2248.     {
  2249.     
  2250.     
  2251.     
  2252.         var theTable = document.getElementById('del_result_table');
  2253.         var lastRow = theTable.rows.length;
  2254.         for(i=0; i<lastRow ; i++)
  2255.         {
  2256.             theTable.deleteRow(0); 
  2257.         }
  2258.         //document.getElementById('del_desc_table').innerText="No Deleted list found";
  2259.         
  2260.         if(document.getElementById('delete_remove_all').style.visibility == "visible")
  2261.             {
  2262.                 document.getElementById('delete_remove_all').style.visibility = "hidden"
  2263.             }
  2264.             //if(document.getElementById('delete_remove_this').style.visibility == "visible")
  2265.             //{
  2266.                 //document.getElementById('delete_remove_this').style.visibility = "hidden"
  2267.             //}
  2268.             //if(document.getElementById('delete_undelete_this').style.visibility == "visible")
  2269.             //{
  2270.                 //document.getElementById('delete_undelete_this').style.visibility = "hidden"
  2271.             //}
  2272.             //if(document.getElementById('delete_learnmore').style.visibility == "visible")
  2273.             //{
  2274.             //    document.getElementById('delete_learnmore').style.visibility = "hidden"
  2275.             //}
  2276.             if(document.getElementById('delete_undelete_checkedchecked').style.visibility == "visible")
  2277.             {
  2278.                 document.getElementById('delete_undelete_checkedchecked').style.visibility = "hidden"
  2279.             }
  2280.     }
  2281.     function delete_setstatus(id,status)
  2282.     {
  2283.         document.getElementById(id).innerText = status;
  2284.     }
  2285.     function showDelresult_DelDescription()
  2286.     {        
  2287.         var rowid;
  2288.         rowid=event.srcElement.id;
  2289.         var checkcount=rowid.indexOf('checkbox');
  2290.            if (checkcount!=-1)
  2291.             {
  2292. //               checkcount=checkcount-2;
  2293. //               //alert(checkcount);
  2294. //                
  2295. //                if (checkcount==0)
  2296. //                {
  2297. //                    checkcount=1;
  2298. //                }
  2299. //               var myrowid = Mid(rowid,0,checkcount);
  2300. //               alert(myrowid);
  2301. //               //highlightRows_Delresult(myrowid);
  2302. //               
  2303. //               alert(window.document.getElementById(myrowid+'_checkbox').checked);
  2304. //                       if (window.document.getElementById(myrowid+'_checkbox').checked)
  2305. //                    {
  2306. //                        window.document.getElementById(myrowid+'_checkbox').checked=false;
  2307. //                    }
  2308. //                    else
  2309. //                    {
  2310. //                        window.document.getElementById(myrowid+'_checkbox').checked=true;
  2311. //                    }
  2312.             }
  2313.             else
  2314.             {
  2315.                 highlightRows_Delresult(rowid);
  2316.             }
  2317.         
  2318.         
  2319.         
  2320.     }
  2321.  
  2322.     var del_item_details = new Array();
  2323.     var deletepage_selected_item=-1;
  2324.     
  2325.     function delete_addspyware(name,type,date,desc,advice,author)
  2326.     {
  2327.         search_row=null;
  2328.         var theTable = document.all['del_result_table'];
  2329.         var lastRow = theTable.rows.length;
  2330.         var row_id = parseInt(lastRow) ;
  2331.         
  2332.         
  2333.             //option 
  2334.         
  2335.         if(name=="")
  2336.         {
  2337.             document.getElementById('delete_remove_all').disabled="true";
  2338.             //document.getElementById('delete_remove_this').disabled="true";
  2339.             //document.getElementById('delete_undelete_this').disabled="true";
  2340.             //document.getElementById('delete_learnmore').disabled="true";
  2341.             //Cell = Row.insertCell(); 
  2342.             //Cell = Row.insertCell(); 
  2343.             document.getElementById('delete_undelete_checkedchecked').disabled="true";
  2344.         
  2345.         }else
  2346.         {
  2347.             var Row  =theTable.insertRow();
  2348.             Row.setAttribute('id',row_id);
  2349.             Row.title=name;
  2350.             Row.type=type;
  2351.             Row.author=author;
  2352.             
  2353.             Row.setAttribute('height',30);
  2354.             Row.onclick=showDelresult_DelDescription;
  2355.             var Cell ;
  2356.         
  2357.             Cell = Row.insertCell(); 
  2358.             Cell.setAttribute('id',row_id);
  2359.             Cell.setAttribute('width',205);
  2360.             Cell.setAttribute('align',"left");
  2361.             Cell.setAttribute('nowrap');
  2362.             
  2363.             //Cell.innerHTML=" <input type='checkbox' id='"+row_id+"_checkbox' onclick='uncheckmaindel("+row_id+");'>  " +name ;
  2364.             Cell.innerHTML=" <input type='checkbox' id='"+row_id+"_checkbox' onclick='uncheckmain(this);'>  " +name ;
  2365.             Cell = Row.insertCell(); 
  2366.             Cell.setAttribute('id',row_id);
  2367.             Cell.setAttribute('width',167);
  2368.             Cell.setAttribute('align',"left");
  2369.             Cell.setAttribute('nowrap');
  2370.             
  2371.             //Cell.innerHTML="<p onclick='uncheckmaindel("+row_id+");'>"+type+"</p>";
  2372.             
  2373.             Cell.innerHTML=type;
  2374.             Cell = Row.insertCell(); 
  2375.             Cell.setAttribute('id',row_id);
  2376.             Cell.setAttribute('align',"left");
  2377.             Cell.setAttribute('nowrap');
  2378.             Cell.innerHTML= date;
  2379.             //var desc_string = ""
  2380.             //desc_string  += ' '
  2381.             //desc_string  += '<strong>' +name+ '<strong><br><strong>Type:<strong>'  +type+ ' <br><strong>Description:<strong>'  +desc+ ' <br><strong>Type:<strong>'  +advice +'<br></table> '
  2382.             //del_item_details[row_id]=desc_string
  2383.      
  2384.             if(document.getElementById('delete_remove_all').style.visibility == "hidden")
  2385.             {
  2386.                 document.getElementById('delete_remove_all').style.visibility = "visible"
  2387.             }
  2388.             //if(document.getElementById('delete_remove_this').style.visibility == "hidden")
  2389.             //{
  2390.                 //document.getElementById('delete_remove_this').style.visibility = "visible"
  2391.             //}
  2392.             //if(document.getElementById('delete_undelete_this').style.visibility == "hidden")
  2393.             //{
  2394.                 //document.getElementById('delete_undelete_this').style.visibility = "visible"
  2395.             //}
  2396.             //if(document.getElementById('delete_learnmore').style.visibility == "hidden")
  2397.             //{
  2398.             //    document.getElementById('delete_learnmore').style.visibility = "visible"
  2399.             //}
  2400.             if(document.getElementById('delete_undelete_checkedchecked').style.visibility == "hidden")
  2401.             {
  2402.                 document.getElementById('delete_undelete_checkedchecked').style.visibility = "visible"
  2403.             }
  2404.             
  2405.             
  2406.             document.all['del_result_table'].style.cursor='hand';
  2407.             
  2408.             document.getElementById('delete_remove_all').disabled=false;
  2409.             document.getElementById('delete_undelete_checkedchecked').disabled=false;
  2410.         
  2411.             
  2412.             //highlightRows_Delresult(1);
  2413.             theTable.rows[0].click();
  2414.         }
  2415.     }
  2416.     
  2417.  
  2418. var del_add_file_list = new Array();
  2419. var del_add_file_list_show = new Array();
  2420.  
  2421.     function delete_addfile(index,name,path,size,publisher,md5,date)
  2422.     {
  2423.  
  2424.         if(del_add_file_list_show[index+'_file_dis'])
  2425.         {
  2426.              del_add_file_list_show[index+'_file_dis'] += '<tr   ><td  id="' + name + '_file_dis" height="2" valign="top"><img src="images/image.png"  style="left:0px;height:20" > ' + path + '</td></tr>'  ;
  2427.         }
  2428.         else
  2429.         {
  2430.             del_add_file_list_show[index+'_file_dis'] =  '<tr ><td   id="' + index + '_file_dis" height="2"valign="top"><img id="'+index+'" style="left:0px;height:20" src="images/image.png" >' + path + '</td></tr>'  ;
  2431.         }
  2432.         var string = "<strong>"+ID_FILE+"</strong><br>"
  2433.         
  2434.         string +='<strong>'+ID_PATH+'</strong>'  +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>'  +publisher+ ' <br><strong>'+ID_MD+'</strong>'  +md5 +'<br><strong>'+ID_DATE+'</strong>'  +date +'<br>';
  2435.         
  2436.         if(del_add_file_list[index+'_file'])
  2437.             del_add_file_list[index+'_file'] += string;
  2438.         else
  2439.             del_add_file_list[index+'_file'] = string;
  2440.     }
  2441.  
  2442. var del_add_process = new Array();
  2443. var del_add_proc_list_show = new Array();
  2444.  
  2445.     function delete_addprocess(index,name,path,size,publisher,md5,date,pid)
  2446.     {
  2447.             if(del_add_proc_list_show[index+'_proc'])
  2448.                 del_add_proc_list_show[index+'_proc'] += '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>'  ;
  2449.             else
  2450.                 del_add_proc_list_show[index+'_proc'] = '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>'  ;
  2451.             
  2452.             var string = '<strong>'+ID_PROCESS+'</strong><br>';
  2453.             
  2454.             string +='<strong>'+ID_PATH+'</strong>'  +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>'  +publisher+ ' <br><strong>'+ID_MD+'</strong>'  +md5 +'<br><strong>'+ID_DATE+'</strong>'  +date +'<br><strong>'+ID_PID+'</strong>'  +pid +'<br>'
  2455.  
  2456.             if(del_add_process[index+'_proc'])
  2457.                 del_add_process[index+'_proc'] += string
  2458.             else
  2459.                 del_add_process[index+'_proc'] = string
  2460.             
  2461.         }
  2462.     
  2463.     var del_add_folder = new Array();
  2464.     var     del_add_fold_list_show = new Array();
  2465.     function delete_addfolder(index,name,path)
  2466.     {
  2467.             
  2468.         if(del_add_fold_list_show[index+'_fold_dis'])
  2469.         {
  2470.                 del_add_fold_list_show[index+'_fold_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top">img src="images/image.png" onClick=""> ' + path + ' </td><br>'  ;
  2471.         }
  2472.         else
  2473.         {
  2474.             del_add_fold_list_show[index+'_fold_dis'] =  '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + ' </td><br>'  ;
  2475.         }
  2476.         var string = "<strong>"+ID_FOLDER+"</strong><br>";
  2477.         string += path+ ' <br>'
  2478.  
  2479.         if(del_add_folder[index+'_fold'])
  2480.             del_add_folder[index+'_fold'] += string
  2481.         else
  2482.             del_add_folder[index+'_fold'] = string
  2483.             
  2484.     }
  2485.  
  2486.     var del_add_regkey = new Array();
  2487.     var del_add_regkey_list_show = new Array();
  2488.     function delete_addregkey(index,name,rootkey)
  2489.     {
  2490.             if(del_add_regkey_list_show[index+'_regkey_dis'])
  2491.                     del_add_regkey_list_show[index+'_regkey_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2492.             else
  2493.                     del_add_regkey_list_show[index+'_regkey_dis'] =  '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2494.             
  2495.  
  2496.             var string ="";
  2497.             if(del_add_regkey[index+'_regkey'])
  2498.             {
  2499.                 string +="<font size=1>"+rootkey+ ' </font><br>';
  2500.                 del_add_regkey[index+'_regkey'] += string
  2501.             }
  2502.             else
  2503.             {
  2504.                 string = "<strong>Rootkey</strong><br>";
  2505.                 string +="<font size=1>"+rootkey+ ' </font><br>';
  2506.                 del_add_regkey[index+'_regkey'] = string;
  2507.             }
  2508.  
  2509.             
  2510.     }
  2511.     
  2512.     var del_add_regvalue  = new Array();
  2513.     var del_add_regkeyval_list_show = new Array();
  2514.     function delete_addregvalue(index,name,rootkey,value,data)
  2515.     {
  2516.             if(del_add_regkeyval_list_show[index+'_regkeyval_dis'])
  2517.                     del_add_regkeyval_list_show[index+'_regkeyval_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2518.             else
  2519.                     del_add_regkeyval_list_show[index+'_regkeyval_dis'] =  '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>'  ;
  2520.  
  2521.             var string = "<strong>"+ID_REGKEYVAL+"</strong><br>";
  2522.             string +='<strong>'+ID_ROOTKEY+'</strong>'  +rootkey+ ' <br><strong>'+ID_VALUE+'</strong>' +value+ ' <br><strong>'+ID_DATA+'</strong>'  +data+ ' <br>';
  2523.  
  2524.             if(del_add_regvalue[index+'_regval'])
  2525.                 del_add_regvalue[index+'_regval'] += string
  2526.             else
  2527.                 del_add_regvalue[index+'_regval'] = string
  2528.              
  2529.     }
  2530.     
  2531.     var del_add_cookie = new Array();
  2532.     var del_add_cookie_list_show = new Array();
  2533.     function delete_addcookie(index,name,path)
  2534.     {
  2535.             if(del_add_cookie_list_show[index+'_cookie_dis'])
  2536.                     del_add_cookie_list_show[index+'_cookie_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' +path + ' </td><br>'  ;
  2537.             else
  2538.                     del_add_cookie_list_show[index+'_cookie_dis'] ='<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">'+ path + ' </td><br>'  ;
  2539.     
  2540.             var string = "<strong>"+ID_COOKIE+"</strong><br>"
  2541.             string +='<strong>'+ID_PATH+'</strong>'  +path+ ' <br>'
  2542.  
  2543.             if(del_add_cookie[index+'_fold'])
  2544.                 del_add_cookie[index+'_fold'] += string
  2545.             else
  2546.                 del_add_cookie[index+'_fold'] = string
  2547.                 
  2548.     }
  2549.  
  2550.     function delete_ischecked(index)//returns true or false
  2551.     {
  2552.         if(document.getElementById(index).checked)
  2553.             return true;
  2554.         return false
  2555.     }
  2556.  
  2557.     
  2558.     function delete_getselectedindex()//returns selected row number 
  2559.     {
  2560.         
  2561.         return deletepage_selected_item;
  2562.         
  2563.     }    
  2564.     
  2565.  
  2566.     
  2567.  
  2568. /////////////////////          To highlight  row of a table    
  2569.  
  2570.        ///////////////////////////////////
  2571.        
  2572.        function highlightRows_Delresult(rowid)
  2573.         {
  2574.             
  2575.             var set = 0; 
  2576.             var table = document.getElementById("del_result_table");
  2577.             var end = parseInt(rowid) + 2;
  2578.             
  2579.             for(var i=0;i< table.rows.length;i++)
  2580.             {
  2581.                 var search_row =table.rows[i];
  2582.                 
  2583.                 
  2584.                    if(parseInt(search_row.id)==parseInt(rowid))
  2585.                 {
  2586.                 
  2587.                    // document.all["R_Name"].innerHTML=search_row.title;
  2588.                     
  2589.                     // Added By Priya
  2590.                         var breakingno=20;
  2591.                         var sName=search_row.title;
  2592.                         if (sName.length>breakingno)
  2593.                         {
  2594.                             Str1=Left(sName,breakingno);
  2595.                             Str2=Mid(sName,breakingno,sName.length);
  2596.                             
  2597.                             if(Str2.length>0)
  2598.                             {
  2599.                                 document.all["R_Name"].innerHTML=Str1 + '....';
  2600.                             }
  2601.                             else
  2602.                             {
  2603.                                 document.all["R_Name"].innerHTML=search_row.title;
  2604.                             }
  2605.                           
  2606.                             
  2607.                         }
  2608.                         
  2609.                         else
  2610.                         {
  2611.                             document.all["R_Name"].innerHTML=search_row.title;
  2612.                            
  2613.                         }
  2614.                                     
  2615.                    
  2616.                     // document.all["R_Name"].innerHTML=search_row.title;
  2617.                     
  2618.                     document.all["R_Type"].innerHTML=search_row.type;
  2619.                     if (search_row.author=="")
  2620.                     {
  2621.                         sRAuthor="Unkown";
  2622.                     }
  2623.                     else
  2624.                     {
  2625.                         sRAuthor=search_row.author;
  2626.                     }
  2627.                     document.all["R_Author"].innerHTML=sRAuthor;
  2628.                     deletepage_selected_item=i;        
  2629.                     
  2630.                     
  2631. //                    if (window.document.getElementById(rowid+'_checkbox').checked)
  2632. //                    {
  2633. //                        window.document.getElementById(rowid+'_checkbox').checked=false;    
  2634. //                        window.document.getElementById("checkall").checked=false;        
  2635. //                    }
  2636. //                    else
  2637. //                    {
  2638. //                        window.document.getElementById(rowid+'_checkbox').checked=true;            
  2639. //                    }
  2640.                 
  2641.                                 
  2642. //                    search_row.cells[0].style.borderLeft = '1px solid #000000';  
  2643. //                    search_row.cells[0].style.borderTop = '1px solid #000000';  
  2644. //                    search_row.cells[0].style.borderBottom = '1px solid #000000';  
  2645. //           
  2646. //           
  2647. //                    search_row.cells[1].style.borderTop = '1px solid #000000';  
  2648. //                    search_row.cells[1].style.borderBottom = '1px solid #000000';  
  2649. //                    
  2650. //                    search_row.cells[2].style.borderTop = '1px solid #000000';  
  2651. //                    search_row.cells[2].style.borderBottom = '1px solid #000000';  
  2652. //                    search_row.cells[2].style.borderRight = '1px solid #000000'; 
  2653. //                    
  2654. //                    search_row.style.backgroundColor = "#ffffff";     
  2655. //                    
  2656.                     search_row.style.backgroundColor = "#e6edf5";
  2657.                     
  2658.                     document.getElementById('delete_listclick').click();
  2659.                     
  2660.                 }
  2661.                 else
  2662.                 {
  2663.                     // Added by chandan for alternate color /////////////
  2664. //                    if (i % 2 == 1)
  2665. //                    {
  2666. //                        search_row.style.backgroundColor = "#f1f6ff";
  2667. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  2668. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  2669. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  2670. //               
  2671. //               
  2672. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  2673. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  2674. //                        
  2675. //                        search_row.cells[2].style.borderTop = '1px solid #f1f6ff';  
  2676. //                        search_row.cells[2].style.borderBottom = '1px solid #f1f6ff';  
  2677. //                        search_row.cells[2].style.borderRight = '1px solid #f1f6ff'; 
  2678. //                    }
  2679. //                    else
  2680. //                    {
  2681. //                        search_row.style.backgroundColor = "#f1f6ff";
  2682. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  2683. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  2684. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  2685. //               
  2686. //               
  2687. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  2688. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  2689. //                        
  2690. //                        search_row.cells[2].style.borderTop = '1px solid #f1f6ff';  
  2691. //                        search_row.cells[2].style.borderBottom = '1px solid #f1f6ff';  
  2692. //                        search_row.cells[2].style.borderRight = '1px solid #f1f6ff';
  2693. //                    }
  2694.                     //////////////////
  2695.                     
  2696.                     //alert(search_row.id+'_checkbox');
  2697.                     
  2698.                     //uncheckmaindel(search_row.id);
  2699.                     
  2700.                     //window.document.getElementById(search_row.id+'_checkbox').checked=false;
  2701.                     
  2702.                     
  2703.                     //window.document.getElementById(rowChk).checked=false;
  2704.                    
  2705.                     
  2706.                     search_row.style.backgroundColor = "#ffffff";
  2707.             
  2708.                 }
  2709.             }
  2710.             
  2711.         
  2712.         }    
  2713. ////////////////////////////////////////////////////
  2714.         function highlightRows_Quarresult(rowid)
  2715.         {
  2716.             var set = 0; 
  2717.             var table = document.getElementById("quar_result_table");
  2718.             
  2719.             var end = parseInt(rowid) + 2;
  2720.         
  2721.             for(var i=0;i< table.rows.length;i++)
  2722.             {
  2723.                 var search_row =table.rows[i];
  2724.  
  2725.                 if(search_row.id ==  rowid)
  2726.                 {
  2727.                    
  2728.                     
  2729.                         // Added By Priya
  2730.                         var breakingno=20;
  2731.                         var sName=search_row.title;
  2732.                         if (sName.length>breakingno)
  2733.                         {
  2734.                             Str1=Left(sName,breakingno);
  2735.                             Str2=Mid(sName,breakingno,sName.length);
  2736.                             
  2737.                             if(Str2.length>0)
  2738.                             {
  2739.                                 document.all["Q_Name"].innerHTML=Str1 + '....';
  2740.                             }
  2741.                             else
  2742.                             {
  2743.                                 document.all["Q_Name"].innerHTML=search_row.title;
  2744.                             }
  2745.                           
  2746.                             
  2747.                         }
  2748.                         
  2749.                         else
  2750.                         {
  2751.                             document.all["Q_Name"].innerHTML=search_row.title;
  2752.                            
  2753.                         }
  2754.                                     
  2755.                    
  2756.                     // document.all["Q_Name"].innerHTML=search_row.title;
  2757.         
  2758.         
  2759.                     document.all["Q_Type"].innerHTML=search_row.type;
  2760.                     if (search_row.author=="")
  2761.                     {
  2762.                         sQAuthor="Unkown";
  2763.                     }
  2764.                     else
  2765.                     {
  2766.                         sQAuthor=search_row.author;
  2767.                     }
  2768.                     document.all["Q_Author"].innerHTML=sQAuthor;
  2769.                     
  2770.                     quarantinepage_selected_item=i;        
  2771.                     
  2772.                     
  2773. //                    if (window.document.getElementById(rowid+'_checkbox').checked)
  2774. //                    {
  2775. //                        window.document.getElementById(rowid+'_checkbox').checked=false;    
  2776. //                        window.document.getElementById("checkall").checked=false;        
  2777. //                    }
  2778. //                    else
  2779. //                    {
  2780. //                        window.document.getElementById(rowid+'_checkbox').checked=true;            
  2781. //                    }
  2782.                     
  2783.                     
  2784.                     
  2785. //                    search_row.cells[0].style.borderLeft = '1px solid #000000';  
  2786. //                    search_row.cells[0].style.borderTop = '1px solid #000000';  
  2787. //                    search_row.cells[0].style.borderBottom = '1px solid #000000';  
  2788. //                   
  2789. //                   
  2790. //                    search_row.cells[1].style.borderTop = '1px solid #000000';  
  2791. //                    search_row.cells[1].style.borderBottom = '1px solid #000000';  
  2792. //                   
  2793. //                    
  2794. //                    search_row.cells[2].style.borderTop = '1px solid #000000';  
  2795. //                    search_row.cells[2].style.borderBottom = '1px solid #000000';  
  2796. //                    search_row.cells[2].style.borderRight = '1px solid #000000';  
  2797. //                            
  2798. //                    search_row.style.backgroundColor = "#ffffff";
  2799.                     search_row.style.backgroundColor = "#e6edf5";
  2800.                             
  2801.                     document.getElementById('quarantine_listclick').click();
  2802.                 }
  2803.                 else
  2804.                 {
  2805.                     // Added by chandan for alternate color /////////////
  2806. //                    if (i % 2 == 1)
  2807. //                    {
  2808. //                        search_row.style.backgroundColor = "#f1f6ff";
  2809. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  2810. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  2811. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  2812. //                       
  2813. //                       
  2814. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  2815. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  2816. //                       
  2817. //                        
  2818. //                        search_row.cells[2].style.borderTop = '1px solid #f1f6ff';  
  2819. //                        search_row.cells[2].style.borderBottom = '1px solid #f1f6ff';  
  2820. //                        search_row.cells[2].style.borderRight = '1px solid #f1f6ff';  
  2821. //                
  2822. //                    }
  2823. //                    else
  2824. //                    {
  2825. //                        search_row.style.backgroundColor = "#f1f6ff";
  2826. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  2827. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  2828. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  2829. //                       
  2830. //                       
  2831. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  2832. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  2833. //                       
  2834. //                        
  2835. //                        search_row.cells[2].style.borderTop = '1px solid #f1f6ff';  
  2836. //                        search_row.cells[2].style.borderBottom = '1px solid #f1f6ff';  
  2837. //                        search_row.cells[2].style.borderRight = '1px solid #f1f6ff';  
  2838. //                    }
  2839.                     
  2840.                     //window.document.getElementById(search_row.id+'_checkbox').checked=false;
  2841.                     search_row.style.backgroundColor = "#ffffff";
  2842.                 }
  2843.             }
  2844.             
  2845.             
  2846.             
  2847.             
  2848.         }    
  2849.     
  2850.     
  2851.     ////                  Scan History Page
  2852. //============================
  2853.  
  2854. function showScanhistory_Description()
  2855. {        
  2856.     /*var string = "";
  2857.     if(scan_history_desc[index])
  2858.     {
  2859.         string += scan_history_desc[index] ;
  2860.     }
  2861.     document.getElementById('scan_history_desc').innerHTML =  string;*/
  2862.     highlightRows_ScanHistory(event.srcElement.id);
  2863. }
  2864.  
  2865.  
  2866. function highlightRows_ScanHistory(rowid)
  2867. {
  2868.     var set = 0; 
  2869.     var table = document.getElementById("scan_history_result_table");
  2870.     for(var i=0;i< table.rows.length;i++)
  2871.     {
  2872.         var search_row =table.rows[i]
  2873.         if(search_row.id ==  rowid)
  2874.         {
  2875.             //document.all["StartDate"].innerHTML=search_row.time;
  2876.             //if(scanhistory_selected_item!=i)
  2877.             //{
  2878.                 scanhistory_selected_item=i;
  2879.                 
  2880.             //}            
  2881.             //search_row.style.backgroundColor = "#fdffd1";
  2882.             
  2883. //                    search_row.cells[0].style.borderLeft = '1px solid #000000';  
  2884. //                    search_row.cells[0].style.borderTop = '1px solid #000000';  
  2885. //                    search_row.cells[0].style.borderBottom = '1px solid #000000';  
  2886. //                   
  2887. //                   
  2888. //                    search_row.cells[1].style.borderTop = '1px solid #000000';  
  2889. //                    search_row.cells[1].style.borderBottom = '1px solid #000000';  
  2890. //                     search_row.cells[1].style.borderRight = '1px solid #000000';  
  2891. //                    
  2892. //                   
  2893. //                            
  2894. //                    search_row.style.backgroundColor = "#ffffff";
  2895. //                    
  2896.                     search_row.style.backgroundColor = "#e6edf5";
  2897.                     
  2898.                     //document.all['scanhistory_listclick'].click();
  2899.         }
  2900.         
  2901.         else
  2902.         {
  2903.             // Added by chandan for alternate color /////////////
  2904. //            if (i % 2 == 1)
  2905. //            {
  2906. //                search_row.style.backgroundColor = "#f1f6ff";
  2907. //                
  2908. //                search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  2909. //                search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  2910. //                search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  2911. //               
  2912. //               
  2913. //                search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  2914. //                search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  2915. //                search_row.cells[1].style.borderRight = '1px solid #f1f6ff';  
  2916. //            }
  2917. //            else
  2918. //            {
  2919. //                search_row.style.backgroundColor = "#f1f6ff";
  2920. //                search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  2921. //                search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  2922. //                search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  2923. //               
  2924. //               
  2925. //                search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  2926. //                search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  2927. //                search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; 
  2928. //            }
  2929.             //////////////////
  2930.             
  2931.             search_row.style.backgroundColor = "#ffffff";
  2932.             
  2933.         }
  2934.     }
  2935.     document.all["scanhistory_deletethisscan"].disabled=false;
  2936.     document.all["scanhistory_viewdetails"].disabled=false;
  2937.     document.all["Elog"].disabled=false;
  2938.     document.all["scanhistory_clearhistory"].disabled=false;
  2939.  
  2940. }    
  2941.     var more_info_spyware=0;
  2942.     function showSpywareInfo(spywareid)
  2943.     {
  2944.         more_info_spyware=spywareid;
  2945.         document.all['scanhistory_spyware_click'].click();
  2946.     }
  2947.     function getselectedspywareid()
  2948.     {
  2949.         return more_info_spyware;;
  2950.     }
  2951.     //var scan_history_desc = new Array();
  2952.     var scanhistory_selected_item=-1;
  2953.     function test_focusin()
  2954.     {
  2955.         
  2956.         document.getElementById('nhours').style.backgroundColor = "#fdffd1";
  2957.     }
  2958.     function test_focusout()
  2959.     {
  2960.         document.getElementById('nhours').style.backgroundColor = "#ffffff";
  2961.     }
  2962.     function test()
  2963.     {
  2964.         var nKeycode=window.event.keyCode;
  2965.         if(nKeycode==38)
  2966.         {
  2967.             var nHours=document.getElementById('nhours').innerText;
  2968.             nHours=parseInt(nHours);            
  2969.             if(nHours<23)
  2970.                 nHours++;
  2971.             document.getElementById('nhours').innerText=nHours;
  2972.         }else if(nKeycode==40)
  2973.         {
  2974.             var nHours=document.getElementById('nhours').innerText;
  2975.             nHours=parseInt(nHours);
  2976.             if(nHours>0)
  2977.                 nHours--;
  2978.             document.getElementById('nhours').innerText=nHours;
  2979.         }
  2980.     }
  2981.     function test1()
  2982.     {
  2983.         var nMins=parseInt(document.all['nmins'].innerText);
  2984.  
  2985.     }
  2986.     function test2()
  2987.     {
  2988.         var nSecs=parseInt(document.all['nseconds'].innerText);
  2989.  
  2990.     }
  2991.     function test3()
  2992.     {
  2993.         var nDay=parseInt(document.all['nday'].innerText);
  2994.  
  2995.     }
  2996.     function scan_insertRow(time,ndetected,nremoved,nquarantined,nignored)
  2997.     {        
  2998.         //var theTable = document.getElementById('scan_history_result_table');
  2999.         
  3000.         search_row=null;
  3001.         var theTable = document.all['scan_history_result_table'];
  3002.         var lastRow = theTable.rows.length;
  3003.         var row_id = parseInt(lastRow) + 1
  3004.         var row  = theTable.insertRow();
  3005.         row.setAttribute('id',time);
  3006.         row.setAttribute('height',35);
  3007.         row.time=time;
  3008.         row.onclick=showScanhistory_Description;
  3009.         
  3010.         var Cell;
  3011.         if(time=="0")
  3012.         {
  3013.             //Cell = row.insertCell();
  3014.             //Cell.innerText =ID_NO_SCAN;
  3015.             document.getElementById("scanhistory_viewdetails").disabled=true;
  3016.             document.getElementById("scanhistory_deletethisscan").disabled=true;
  3017.             document.getElementById("scanhistory_clearhistory").disabled=true;
  3018.             document.getElementById("Elog").disabled=true;
  3019.             
  3020.         }else
  3021.         {
  3022.             Cell = row.insertCell(); 
  3023.             Cell.setAttribute('id',time);
  3024.             Cell.setAttribute('align',"left");
  3025.             Cell.setAttribute('valign',"top");
  3026.             Cell.setAttribute('width',240);
  3027.             Cell.innerHTML="   "+time;
  3028.             Cell = row.insertCell(); 
  3029.             Cell.setAttribute('id',time);
  3030.             Cell.setAttribute('align',"left");
  3031.             Cell.setAttribute('valign',"top");
  3032.  
  3033.             Cell.innerHTML=ID_SPY_DETECTED + ndetected + ID_SPY_REMOVED + nremoved +"<br>"+ID_SPY_QUA + nquarantined + ID_SPY_IGN + nignored;
  3034.             
  3035.             //var desc_string = ""
  3036.              
  3037.             //desc_string  += 'Spyware Scan Details<br>Start Date:<strong>' +time+ '<strong><br><br><strong> Detected Infections</strong><br><br><strong>Spyware Detected:<strong>'  +ndetected+ ' <br><strong>Spyware Removed:<strong>'  +nremoved+ ' <br><strong>Spyware Quarantined:<strong>'  +nquarantined +'<br><strong>Spyware Ignored:<strong>'+nignored+'</table> '
  3038.             
  3039.             //scan_history_desc[time]=desc_string;
  3040.             //Added By Priya
  3041.             document.all['scan_history_result_table'].style.cursor='hand';
  3042.             //////////
  3043.             //highlightRows_ScanHistory(theTable.rows[0].id);
  3044.             document.getElementById("scanhistory_viewdetails").disabled=false;
  3045.             document.getElementById("scanhistory_deletethisscan").disabled=false;
  3046.             document.getElementById("scanhistory_clearhistory").disabled=false;
  3047.             document.getElementById("Elog").disabled=false;
  3048.              
  3049.              theTable.rows[0].click();
  3050.         }
  3051.     }
  3052.     
  3053.     function scanhistory_clear()
  3054.     {
  3055.                 
  3056.         //var theTable = document.getElementById('scan_history_result_table');
  3057.         var theTable = document.all['scan_history_result_table'];
  3058.         var lastRow = theTable.rows.length;
  3059.         //alert (lastRow);
  3060.         
  3061.         for(i=0; i<lastRow; i++)
  3062.         {
  3063.             //document.getElementById("scan_history_result_table").deleteRow(i); 
  3064.             //commented by chandan
  3065.             document.all['scan_history_result_table'].deleteRow(0);
  3066.             // Added by chandan
  3067.             
  3068.             //alert(document.all['scan_history_result_table']);
  3069.             //document.all['scan_history_result_table'].deleteRow(i);
  3070.     
  3071.         }
  3072.         
  3073.         //Clear Item Count
  3074.         
  3075.         document.all['scanhistory_item_count'].innerHTML="0";
  3076.         document.all["scanhistory_deletethisscan"].disabled=true;
  3077.         document.all["scanhistory_viewdetails"].disabled=true;
  3078.         document.all["scanhistory_clearhistory"].disabled=true;
  3079.         document.all["Elog"].disabled=true;
  3080.         theTable.refresh();
  3081.     }
  3082.     
  3083.     
  3084.     function scanhistory_addscan(time ,ndetected,nremoved,nquarantined,nignored)
  3085.     {
  3086.         //alert(time);
  3087.         if(time!="0")
  3088.         {
  3089.             scan_insertRow(time,ndetected,nremoved,nquarantined,nignored);
  3090.             //Increment Item Count
  3091.             var count=document.all['scanhistory_item_count'].innerHTML;
  3092.             document.all['scanhistory_item_count'].innerHTML=++count;        
  3093.         }
  3094.         
  3095.         // Added By Priya  if no log exist
  3096.         else
  3097.         {   
  3098.             scan_insertRow(time ,ndetected,nremoved,nquarantined,nignored);
  3099.            
  3100.         }
  3101.         /////////////////////////////////////
  3102.     }    
  3103.     function scanhistory_getselected()
  3104.     {
  3105.         //if anchor is disabled return -1
  3106.         return scanhistory_selected_item;
  3107.     }
  3108. /////Realtime events page
  3109.  
  3110.     function realtimeevent_insertRow(time,monitorid,allowed_blocked,title,event_desc,monitor_desc)
  3111.     {        
  3112.         search_row=null;
  3113.         var theTable = document.all['realtimeevent_table'];
  3114.         var lastRow = theTable.rows.length;
  3115.         var row_id = parseInt(lastRow) + 1
  3116.         var Row  = theTable.insertRow();
  3117.         Row.setAttribute('id','event_'+lastRow);
  3118.         Row.setAttribute('height',30);
  3119.         Row.time=time;
  3120.         Row.monitorid=monitorid;
  3121.         Row.allowed_blocked=allowed_blocked;
  3122.         Row.title=title;
  3123.         Row.event_desc=event_desc;
  3124.         Row.monitor_desc=monitor_desc;        
  3125.         var Cell;
  3126.         Cell = Row.insertCell();
  3127.         if(time=="0")
  3128.         {        
  3129.             //event_clear();    
  3130.             //Cell.innerText ="No Events found.";
  3131.             Cell.innerText ="";
  3132.             document.getElementById("realtimeevents_archive_event_log").disabled=true;
  3133.             document.getElementById("realtimeevents_view_archived_events_log").disabled=true;
  3134.             document.getElementById("realtimeevents_clear_events_log").disabled=true;
  3135.             //document.getElementById("realtimeevents_learn_more").disabled=true;
  3136.         }else
  3137.         {
  3138.             Row.onclick=showrealtimeevent_Description;
  3139.             Cell.setAttribute('id',time);
  3140.             Cell.setAttribute('align',"left");
  3141.             Cell.setAttribute('valign',"top");
  3142.             Cell.setAttribute('width',220);
  3143.             Cell.innerHTML='  '+time  ;
  3144.             Cell = Row.insertCell(); 
  3145.             Cell.setAttribute('id',time);
  3146.             Cell.setAttribute('align',"left");    
  3147.             Cell.setAttribute('valign',"top");        
  3148.             var tempStr=event_desc;
  3149.             Cell.innerHTML=tempStr;
  3150.             //Increment Item Count
  3151.             var count=document.all['realtimeevent_item_count'].innerHTML;
  3152.             document.all['realtimeevent_item_count'].innerHTML=++count;
  3153.             //Added By Priya
  3154.             document.all['realtimeevent_table'].style.cursor='hand';
  3155.             /////////////////
  3156.             //highlightRows_realtimeevent(Row);
  3157.              theTable.rows[0].click();
  3158.         }
  3159.     }
  3160.     function showrealtimeevent_Description()
  3161.     {
  3162.         var elem=event.srcElement;
  3163.         var id;
  3164.         do{
  3165.             id=elem.id;
  3166.             elem=elem.parentElement;
  3167.         }while(! (document.all[id] && id.search('event_')>=0));
  3168.         var row=document.all[id];
  3169.         
  3170.         
  3171.         // document.all["All_EventName"].innerHTML=row.title;
  3172.          
  3173.          
  3174.         // Added By Priya
  3175.                         var breakingno=25;
  3176.                         var sName=row.title;
  3177.                         if (sName.length>breakingno)
  3178.                         {
  3179.                             Str1=Left(sName,breakingno);
  3180.                             Str2=Mid(sName,breakingno,sName.length);
  3181.                             
  3182.                             if(Str2.length>0)
  3183.                             {
  3184.                                 document.all["All_EventName"].innerHTML=Str1 + '....';
  3185.                             }
  3186.                             else
  3187.                             {
  3188.                                 document.all["All_EventName"].innerHTML=row.title;
  3189.                             }
  3190.                           
  3191.                             
  3192.                         }
  3193.                         
  3194.                         else
  3195.                         {
  3196.                             document.all["All_EventName"].innerHTML=row.title;
  3197.                            
  3198.                         }
  3199.                                     
  3200.                    
  3201.                     // document.all["All_EventName"].innerHTML=search_row.title;
  3202.                     
  3203.          document.all["Event_OccuredTime"].innerHTML=row.time;
  3204.       
  3205.         
  3206.         //var strTemp="<strong>"+row.title+"</strong><BR><BR><b>"+ID_OCC+"</b> "+row.time+"<BR><BR>"+row.event_desc+"<br><br><b>"+ID_ABOUT+row.title+":</b> "+row.monitor_desc;
  3207.         var strTemp=row.event_desc+"<br><br><b>"+ID_ABOUT+row.title+":</b> "+row.monitor_desc;
  3208.         document.all['realtimeevent_desc'].innerHTML= strTemp;        
  3209.         highlightRows_realtimeevent(row.id);
  3210.         
  3211.     }
  3212.     function highlightRows_realtimeevent(rowid)
  3213.     {
  3214.         var set = 0; 
  3215.         var table = document.getElementById("realtimeevent_table");
  3216.         for(var i=0;i< table.rows.length;i++)
  3217.         {
  3218.             var search_row =table.rows[i];
  3219.  
  3220.             if(search_row.id ==  rowid)
  3221.             {
  3222.                 if(realtimeevent_selected_item!=i){
  3223.                     realtimeevent_selected_item=i;
  3224.                     //document.all['scanhistory_listclick'].click();
  3225.                 }
  3226.                 
  3227.                 
  3228. //                        search_row.cells[0].style.borderLeft = '1px solid #000000';  
  3229. //                        search_row.cells[0].style.borderTop = '1px solid #000000';  
  3230. //                        search_row.cells[0].style.borderBottom = '1px solid #000000';  
  3231. //               
  3232. //               
  3233. //                        search_row.cells[1].style.borderTop = '1px solid #000000';  
  3234. //                        search_row.cells[1].style.borderBottom = '1px solid #000000';  
  3235. //                        search_row.cells[1].style.borderRight = '1px solid #000000';
  3236.                        
  3237.                         //search_row.style.backgroundColor = "#ffffff";
  3238.                         search_row.style.backgroundColor = "#e6edf5";
  3239.                         
  3240.             }
  3241.             else
  3242.             {
  3243.                 // Added by chandan for alternate color /////////////
  3244. //                    if (i % 2 == 1)
  3245. //                    {
  3246. //                        search_row.style.backgroundColor = "#f1f6ff";
  3247. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  3248. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  3249. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  3250. //               
  3251. //               
  3252. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  3253. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  3254. //                        search_row.cells[1].style.borderRight = '1px solid #f1f6ff';
  3255. //                    }
  3256. //                    else
  3257. //                    {
  3258. //                        search_row.style.backgroundColor = "#f1f6ff";
  3259. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  3260. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  3261. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  3262. //               
  3263. //               
  3264. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  3265. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  3266. //                        search_row.cells[1].style.borderRight = '1px solid #f1f6ff';
  3267. //                    }
  3268.                     //////////////////
  3269.                 ///search_row.style.backgroundColor = "white";
  3270.                 search_row.style.backgroundColor = "#ffffff";
  3271.             }
  3272.         }
  3273.         document.getElementById("realtimeevents_archive_event_log").disabled=false;
  3274.         document.getElementById("realtimeevents_view_archived_events_log").disabled=false;
  3275.         document.getElementById("realtimeevents_clear_events_log").disabled=false;
  3276.         //document.getElementById("realtimeevents_learn_more").disabled=false;
  3277.     }    
  3278.     var more_info_spyware=0;    
  3279.     function getselectedEvent()
  3280.     {
  3281.         return more_info_spyware;;
  3282.     }
  3283.     var realtimeevent_selected_item=-1;    
  3284.     function realtimeevent_clear()
  3285.     {
  3286.             var theTable = document.all['realtimeevent_table'];
  3287.         var lastRow = theTable.rows.length;
  3288.         for(i=0;i<lastRow;i++)
  3289.         {
  3290.             document.all['realtimeevent_table'].deleteRow(i);
  3291.         }
  3292.         //Clear Item Count
  3293.         document.all['realtimeevent_item_count'].innerHTML="0";
  3294.  
  3295.         document.getElementById("realtimeevents_archive_event_log").disabled=true;
  3296.         document.getElementById("realtimeevents_view_archived_events_log").disabled=true;
  3297.         document.getElementById("realtimeevents_clear_events_log").disabled=true;
  3298.         //document.getElementById("realtimeevents_learn_more").disabled=true;
  3299.         theTable.refresh();
  3300.     }    
  3301.     
  3302.     function realtimeevent_addscan(time,monitorid,allowed_blocked,title,event_desc,monitor_desc)
  3303.     {
  3304.         realtimeevent_insertRow(time,monitorid,allowed_blocked,title,event_desc,monitor_desc);                
  3305.     }    
  3306.     function realtimeevent_getselected()
  3307.     {
  3308.         return realtimeevent_selected_item;        
  3309.     }
  3310.  
  3311. //////real time blocked events page
  3312.     var realtime_blockedevent_selected_item=-1;    
  3313.     function realtime_blockedevents_clear()
  3314.     {
  3315.         var theTable = document.all['realtime_blockedevent_table'];
  3316.         var lastRow = theTable.rows.length;
  3317.         //alert(lastRow);
  3318.         for(i=0;i<lastRow;i++)
  3319.         {
  3320.             document.all['realtime_blockedevent_table'].deleteRow(i);
  3321.         }
  3322.         //Clear Item Count
  3323.         
  3324.         document.all['realtimeevents_blocked_totalitems'].innerHTML="0";
  3325.         //document.getElementById("realtimeevents_blocked_remove_all").disabled=true;
  3326.         //document.getElementById("realtimeevents_blocked_unblock_checked").disabled=true;
  3327.         //document.getElementById("realtimeevents_blocked_unblock_this").disabled=true;
  3328.         document.getElementById("realtimeevents_blocked_remove_this").disabled=true;
  3329.         //document.getElementById("realtimeevents_blocked_learnmore").disabled=true;
  3330.         theTable.refresh();
  3331.     }
  3332.  
  3333.     function realtime_blockedevent_insertRow(time,monitorid,allowed_blocked,title,event_desc)
  3334.     {        
  3335.         search_row=null;
  3336.         var theTable = document.all['realtime_blockedevent_table'];
  3337.         var lastRow = theTable.rows.length;
  3338.         var row_id = parseInt(lastRow) + 1
  3339.         var Row  = theTable.insertRow();
  3340.         Row.setAttribute('id','blockedevent_'+lastRow);
  3341.         Row.setAttribute('height',30)
  3342.         
  3343.         Row.time=time;
  3344.         Row.monitorid=monitorid;
  3345.         Row.allowed_blocked=allowed_blocked;
  3346.         Row.title=title;
  3347.         Row.event_desc=event_desc;
  3348.         var Cell;
  3349.         Cell = Row.insertCell();
  3350.         if(time=="0")
  3351.         {            
  3352.             //Cell.innerHTML ="  <b>No Events found.</b>";
  3353.             Cell.innerText ="";
  3354.             //document.getElementById("realtimeevents_blocked_remove_all").disabled=true;
  3355.             //document.getElementById("realtimeevents_blocked_unblock_checked").disabled=true;
  3356.             //document.getElementById("realtimeevents_blocked_unblock_this").disabled=true;
  3357.             document.getElementById("realtimeevents_blocked_remove_this").disabled=true;
  3358.             //document.getElementById("realtimeevents_blocked_learnmore").disabled=true;
  3359.         }else
  3360.         {
  3361.             Row.onclick=showrealtime_blockedevent_Description;
  3362.             
  3363.             Cell.setAttribute('id',row_id);
  3364.             Cell.setAttribute('width',194);
  3365.             Cell.setAttribute('align',"left");
  3366.             //Cell.innerHTML="<input type='checkbox' id='"+row_id+"_checkbox' >" +name ; //comented by chandan
  3367.             //Cell.innerHTML=name ;
  3368.             Cell.innerHTML='  '+time  ;
  3369.             
  3370.             Cell = Row.insertCell(); 
  3371.             Cell.setAttribute('align',"center");
  3372.             Cell.setAttribute('width',194);
  3373.             Cell.innerHTML=title;
  3374.             
  3375.             //Cell = Row.insertCell();
  3376.             //Cell.setAttribute('align',"center");
  3377.             //Cell.setAttribute('width',280);
  3378.             //Cell.innerHTML='   '+title+" "+ID_DEACTIVATED;
  3379.             
  3380.             
  3381.             //Increment Item Count
  3382.             
  3383.             var count=parseInt(document.all['realtimeevents_blocked_totalitems'].innerHTML);
  3384.             
  3385.             document.all['realtimeevents_blocked_totalitems'].innerHTML=++count;
  3386.             
  3387.             ///////Added By Priya
  3388.             document.all['realtime_blockedevent_table'].style.cursor='hand';
  3389.             /////////////////////
  3390.             
  3391.             //highlightRows_realtime_blockedevent(Row);
  3392.              theTable.rows[0].click();
  3393.         }
  3394.     }
  3395.     function showrealtime_blockedevent_Description()
  3396.     {
  3397.         var elem=event.srcElement;
  3398.         var id;
  3399.         do{
  3400.             id=elem.id;
  3401.             elem=elem.parentElement;
  3402.         }while(! (document.all[id] && id.search('event_')>=0));
  3403.         var row=document.all[id];
  3404.         
  3405.         //document.all["Block_EventName"].innerHTML=row.title;
  3406.         
  3407.         // Added By Priya
  3408.                         var breakingno=25;
  3409.                         var sName=row.title;
  3410.                         if (sName.length>breakingno)
  3411.                         {
  3412.                             Str1=Left(sName,breakingno);
  3413.                             Str2=Mid(sName,breakingno,sName.length);
  3414.                             
  3415.                             if(Str2.length>0)
  3416.                             {
  3417.                                 document.all["Block_EventName"].innerHTML=Str1 + '....';
  3418.                             }
  3419.                             else
  3420.                             {
  3421.                                 document.all["Block_EventName"].innerHTML=row.title;
  3422.                             }
  3423.                           
  3424.                             
  3425.                         }
  3426.                         
  3427.                         else
  3428.                         {
  3429.                             document.all["Block_EventName"].innerHTML=row.title;
  3430.                            
  3431.                         }
  3432.                                     
  3433.                    
  3434.                     // document.all["Block_EventName"].innerHTML=search_row.title;
  3435.         
  3436.         document.all["Event_DisabledTime"].innerHTML=row.time;
  3437.        
  3438.         //var strTemp="<strong>"+row.title+"</strong><BR><BR><b>"+ID_DISABLED+"</b> "+row.time+"<BR><BR><b>"+ID_DETAILS+"</b> "+row.title+" "+ID_DEACTIVATED +"<br><br>"+row.event_desc+"";
  3439.         
  3440.         var strTemp=row.event_desc;
  3441.         
  3442.         document.all['realtime_blockedevent_desc'].innerHTML= strTemp;
  3443.         highlightRows_realtime_blockedevent(row.id);
  3444.  
  3445.     }
  3446.     function highlightRows_realtime_blockedevent(rowid)
  3447.     {
  3448.         var set = 0; 
  3449.         var table = document.getElementById("realtime_blockedevent_table");
  3450.         for(var i=0;i< table.rows.length;i++)
  3451.         {
  3452.             var search_row =table.rows[i];
  3453.             if(search_row.id ==  rowid)
  3454.             {
  3455.                 if(realtime_blockedevent_selected_item!=i)
  3456.                 {
  3457.                     realtime_blockedevent_selected_item=i;
  3458.                     //document.all['scanhistory_listclick'].click();
  3459.                 }                
  3460.                 //search_row.style.backgroundColor = "#fdffd1";
  3461. //                search_row.cells[0].style.borderLeft = '1px solid #000000';  
  3462. //                search_row.cells[0].style.borderTop = '1px solid #000000';  
  3463. //                search_row.cells[0].style.borderBottom = '1px solid #000000';  
  3464. //       
  3465. //       
  3466. //                search_row.cells[1].style.borderTop = '1px solid #000000';  
  3467. //                search_row.cells[1].style.borderBottom = '1px solid #000000';  
  3468. //                 
  3469. //                search_row.cells[2].style.borderTop = '1px solid #000000';  
  3470. //                search_row.cells[2].style.borderBottom = '1px solid #000000';  
  3471. //                search_row.cells[2].style.borderRight = '1px solid #000000';
  3472. //                       
  3473.                 search_row.style.backgroundColor = "#e6edf5";
  3474.             }
  3475.             else
  3476.             {
  3477.                 // Added by chandan for alternate color /////////////
  3478. //                    if (i % 2 == 1)
  3479. //                    {
  3480. //                        search_row.style.backgroundColor = "#f1f6ff";
  3481. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  3482. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  3483. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  3484. //               
  3485. //               
  3486. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  3487. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  3488. //                        
  3489. //                        search_row.cells[2].style.borderTop = '1px solid #f1f6ff';  
  3490. //                        search_row.cells[2].style.borderBottom = '1px solid #f1f6ff';  
  3491. //                        search_row.cells[2].style.borderRight = '1px solid #f1f6ff';
  3492. //                               
  3493. //                       
  3494. //                    }
  3495. //                    else
  3496. //                    {
  3497. //                        search_row.style.backgroundColor = "#f1f6ff";
  3498. //                        
  3499. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  3500. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  3501. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  3502. //               
  3503. //               
  3504. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  3505. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  3506. //                        
  3507. //                        search_row.cells[2].style.borderTop = '1px solid #f1f6ff';  
  3508. //                        search_row.cells[2].style.borderBottom = '1px solid #f1f6ff';  
  3509. //                        search_row.cells[2].style.borderRight = '1px solid #f1f6ff';
  3510. //                        
  3511. //                    }
  3512.                 /////////////////
  3513.                 ////search_row.style.backgroundColor = "white";
  3514.                 
  3515.                 search_row.style.backgroundColor = "#ffffff";
  3516.             }
  3517.             
  3518.         }
  3519.         //document.getElementById("realtimeevents_blocked_remove_all").disabled=false;
  3520.         //document.getElementById("realtimeevents_blocked_unblock_checked").disabled=false;
  3521.         //document.getElementById("realtimeevents_blocked_unblock_this").disabled=false;
  3522.         document.getElementById("realtimeevents_blocked_remove_this").disabled=false;
  3523.         //document.getElementById("realtimeevents_blocked_learnmore").disabled=false;
  3524.     }    
  3525.     var more_info_spyware=0;    
  3526.     function getselected_rt_blockedEvent()
  3527.     {
  3528.         return realtime_blockedevent_selected_item;;
  3529.     }
  3530.         
  3531.     function realtime_blockedevent_addscan(time,monitorid,allowed_blocked,title,event_desc)
  3532.     {
  3533.         realtime_blockedevent_insertRow(time,monitorid,allowed_blocked,title,event_desc);                
  3534.     }    
  3535.     function realtime_blockedevent_getselected()
  3536.     {
  3537.         return realtime_blockedevent_selected_item;        
  3538.     }
  3539. //// ///    Ignore Page
  3540. //////-----------
  3541.  
  3542.     var ignore_page_norows = 0
  3543.     var ignore_selected_item=-1;
  3544.  
  3545.     function ignorelist_clear()
  3546.     {
  3547.         //var theTable = document.getElementById('ignore_page_table');
  3548.         var theTable =  document.all['ignore_page_table'];
  3549.         var lastRow = theTable.rows.length;
  3550.         for(i=0;i<lastRow;i++)
  3551.         {
  3552.             //document.getElementById("quarantine_result_table").deleteRow(i); 
  3553.              document.all['ignore_page_table'].deleteRow(i); 
  3554.         }
  3555.         document.getElementById("ignorelist_remove_this").disabled=true;
  3556.         document.getElementById("ignorelist_remove_checked").disabled=true;
  3557.         //document.getElementById("ignorelist_learnmore").disabled=true;
  3558.     }
  3559.     
  3560.  
  3561.     function showIgnorehistory_Description()
  3562.     {        
  3563.         var str=event.srcElement.id;
  3564.         var string = "";
  3565.         var index=str.replace(/.+_/,'');
  3566.         if(ignore_history_desc[index])
  3567.         {
  3568.             string += ignore_history_desc[index] ;
  3569.         }
  3570.         
  3571.         
  3572.         
  3573.         document.getElementById("ignore_history_desc").innerHTML =  string;
  3574.         
  3575.         
  3576.       //  highlightRows_IgnoreHistory(index);*/
  3577.     
  3578.         highlightRows_IgnoreHistory(event.srcElement.id);
  3579.     
  3580.     }
  3581.  
  3582.        
  3583.  
  3584.     function highlightRows_IgnoreHistory(rowid)
  3585.     {
  3586.         var set = 0; 
  3587.         var table = document.getElementById("ignore_page_table");
  3588.         var end = parseInt(rowid) + 2;    
  3589.         for(var i=0;i< table.rows.length;i++)
  3590.         {
  3591.             var search_row =table.rows[i];
  3592.             if(search_row.id ==  rowid)
  3593.             {
  3594.                    // document.all["I_Name"].innerHTML=search_row.name;
  3595.                     
  3596.                       // Added By Priya
  3597.                         var breakingno=20;
  3598.                         var sName=search_row.name;
  3599.                         if (sName.length>breakingno)
  3600.                         {
  3601.                             Str1=Left(sName,breakingno);
  3602.                             Str2=Mid(sName,breakingno,sName.length);
  3603.                             
  3604.                             if(Str2.length>0)
  3605.                             {
  3606.                                 document.all["I_Name"].innerHTML=Str1 + '....';
  3607.                             }
  3608.                             else
  3609.                             {
  3610.                                 document.all["I_Name"].innerHTML=search_row.name;
  3611.                             }
  3612.                           
  3613.                             
  3614.                         }
  3615.                         
  3616.                         else
  3617.                         {
  3618.                             document.all["I_Name"].innerHTML=search_row.name;
  3619.                            
  3620.                         }
  3621.                                     
  3622.                    
  3623.                     // document.all["I_Name"].innerHTML=search_row.title;
  3624.                     
  3625.                     document.all["I_Type"].innerHTML=search_row.type;
  3626.                    
  3627.                 quarantinepage_selected_item=i;                    
  3628.                 //search_row.style.backgroundColor = "#fdffd1";
  3629.                 
  3630. //                search_row.cells[0].style.borderLeft = '1px solid #000000';  
  3631. //                search_row.cells[0].style.borderTop = '1px solid #000000';  
  3632. //                search_row.cells[0].style.borderBottom = '1px solid #000000';  
  3633. //       
  3634. //       
  3635. //                search_row.cells[1].style.borderTop = '1px solid #000000';  
  3636. //                search_row.cells[1].style.borderBottom = '1px solid #000000';  
  3637. //                search_row.cells[1].style.borderRight = '1px solid #000000'; 
  3638.                 
  3639.                // search_row.style.backgroundColor = "#ffffff"; 
  3640.                 search_row.style.backgroundColor = "#e6edf5";
  3641.                 ignore_selected_item=i;
  3642.                 //document.getElementById('ignore_listclick').click();
  3643.             }
  3644.             else
  3645.             {
  3646.                 // Added by chandan for alternate color /////////////
  3647. //                    if (i % 2 == 1)
  3648. //                    {
  3649. //                        search_row.style.backgroundColor = "#f1f6ff";
  3650. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  3651. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  3652. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  3653. //               
  3654. //               
  3655. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  3656. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  3657. //                        search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; 
  3658. //                
  3659. //                    }
  3660. //                    else
  3661. //                    {
  3662. //                        search_row.style.backgroundColor = "#f1f6ff";
  3663. //                        
  3664. //                        search_row.cells[0].style.borderLeft = '1px solid #f1f6ff';  
  3665. //                        search_row.cells[0].style.borderTop = '1px solid #f1f6ff';  
  3666. //                        search_row.cells[0].style.borderBottom = '1px solid #f1f6ff';  
  3667. //               
  3668. //               
  3669. //                        search_row.cells[1].style.borderTop = '1px solid #f1f6ff';  
  3670. //                        search_row.cells[1].style.borderBottom = '1px solid #f1f6ff';  
  3671. //                        search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; 
  3672. //                    }
  3673.                 //////////////////
  3674.                     ///////////search_row.style.backgroundColor = "white";
  3675.                     
  3676.                      search_row.style.backgroundColor = "#ffffff"; 
  3677.             }
  3678.         }
  3679.         
  3680.         document.getElementById("totalignored").innerHTML=table.rows.length;
  3681.     }
  3682.     var ignore_history_desc = new Array();
  3683.     function ignorelist_addspyware(name,type,desc,spywareid)
  3684.     {
  3685.         
  3686.         if(name!="0")
  3687.         {    
  3688.             search_row=null;    
  3689.             var counts=parseInt(ignore_page_norows); 
  3690.             
  3691.             var CurrentPosition=parseInt(counts);
  3692.             //var interestingTable = document.getElementById("ignore_page_table");
  3693.             var theTable =  document.all['ignore_page_table']; 
  3694.             row  = theTable.insertRow();
  3695.             row.setAttribute('id',name);
  3696.             row.setAttribute('height',25);
  3697.             
  3698.             row.name=name;
  3699.             row.type=type;
  3700.             row.onclick=showIgnorehistory_Description;
  3701.             //Cell = Row.insertCell(); 
  3702.             
  3703.             Cell = row.insertCell(); 
  3704.             Cell.setAttribute('id',name);
  3705.             Cell.setAttribute('align',"left");
  3706.             Cell.setAttribute('width',292);
  3707.             Cell.innerHTML='   '+name;
  3708.             
  3709.             Cell = row.insertCell(); 
  3710.             Cell.setAttribute('id',name);
  3711.             Cell.setAttribute('align',"left");
  3712.             Cell.innerHTML='      '+type;
  3713.             
  3714.             var desc_string = "";             
  3715.             //desc_string  += '<strong>'+ID_NAME+'  ' +name+ '</strong>  <br><br><strong>'+ID_TYPE+'  </strong>'  +type+ ' <br><br><strong>'+ID_SPY_DESC+'  </strong>'  +desc+ ' <br> ';
  3716.             
  3717.             desc_string  += '<strong>'+ID_SPY_DESC+'  </strong>'  +desc+ ' <br> ';
  3718.             
  3719.             ignore_history_desc[name]=desc_string;
  3720.             ignore_page_norows= parseInt(counts) + 1; 
  3721.             
  3722.             //alert(ignore_page_norows);
  3723.             
  3724.             document.getElementById("ignorelist_remove_this").disabled=false;
  3725.             document.getElementById("ignorelist_remove_checked").disabled=false;
  3726.             
  3727.             
  3728.             ///////Added By Priya
  3729.             document.all['ignore_page_table'].style.cursor='hand';
  3730.             /////////////////////
  3731.             
  3732.             //document.getElementById("ignorelist_learnmore").disabled=false;
  3733.             //highlightRows_IgnoreHistory(0);
  3734.              theTable.cells[0].click();
  3735.         }else
  3736.         {
  3737.             //Cell.innerText = ID_IGNORE_LIST;
  3738.             document.getElementById("ignorelist_remove_this").disabled=true;
  3739.             document.getElementById("ignorelist_remove_checked").disabled=true;
  3740.             //document.getElementById("ignorelist_learnmore").disabled=true;
  3741.         }        
  3742.         return false; 
  3743.     }
  3744.     
  3745.     function ignorelist_ischecked(index )
  3746.     {
  3747.         //return document.getElementById(index).checked
  3748.          return document.all[index].checked; 
  3749.     }
  3750.     function ignorelist_getselectedindex()
  3751.     {
  3752.         //return the index of selected item
  3753.         return ignore_selected_item;
  3754.         var table = document.all['ignore_page_table'];
  3755.         for (var x=0; x<table.rows.length; x++)
  3756.         {
  3757.             var search_row = table.rows[x];            
  3758.             if(search_row.cells[0].style.backgroundColor == "#fdffd1")
  3759.             {
  3760.                 return x;
  3761.             }
  3762.         }
  3763.         return -1;
  3764.     }
  3765.      
  3766.  
  3767. //     Scan Progress
  3768. //   --------------
  3769.  
  3770. var scanprogress_norows = 0;
  3771. var scan_progress_count = new Array();
  3772.  
  3773.     function clear_pre_values()
  3774.     {
  3775.         scanprogress_norows = 0;
  3776.     }
  3777.     function scanprogress_setstatus(id,status)
  3778.     {
  3779.         document.getElementById(id).innerText = status;
  3780.     }
  3781.  
  3782.  
  3783.     function scanprogress_add(name,mycounts)
  3784.     {
  3785.         var counts=parseInt(scanprogress_norows); 
  3786.         var Row,Cell;
  3787.         var CurrentPosition=parseInt(counts);
  3788.         
  3789.         //var interestingTable =  document.all["scanprogress_table"];
  3790.         //Row  = interestingTable.insertRow();
  3791.         //Cell = Row.insertCell(); 
  3792.         //Cell.innerText = name;
  3793.         //Cell.height="20px";
  3794.         scanprogress_norows= parseInt(counts) + 1; 
  3795.         
  3796.         //document.getElementById('scanprogress_no_objs').innerHTML ="<table cellpadding=0 cellspacing=0 border=0><tr><td width=163 class=txt_Attention height=40 background=orangebgsmall.png align=center><font color=white><b>"+ID_ATTENTION+"</b></td><td width=2></td><td class=txt_Attention width=389 height=40 background=bluebgsmall.png align=center><font color=white><b>"+mycounts+" "+ID_SPYWRAE_INFECTION_FOUND+"</b></font></td></tr></table>";
  3797.         
  3798.         //document.getElementById('scanprogress_no_objs').innerHTML = "<font color='red'>"+scanprogress_norows+" objects found</font>"
  3799.         
  3800.         document.getElementById('scanprogress_no_objs').innerHTML ="<table cellpadding=0 cellspacing=0 border=0 width='100%'><tr><td align=left width=19 ><img src=icon_error.png></td><td width=4></td><td class=txt_spycount>"+mycounts+" <img src=errorsFound_txt.png style='margin-top:3px;'></td></tr></table>";
  3801.         
  3802.         
  3803.         scan_progress_count[name] = 1;        
  3804.         return false; 
  3805.     }
  3806.  
  3807.     function scanprogress_setCount(name ,count )
  3808.     {
  3809.          scan_progress_count[name] = count;        
  3810.     }
  3811.     
  3812.     function scanprogress_setstatus(status)
  3813.     {
  3814.         
  3815.     }
  3816.     function scanprogress_showAnimation(index)
  3817.     {
  3818.         /*
  3819.         index-1 means Registry animation
  3820.         index-2 means Files animation
  3821.         index-3 means Memory animation
  3822.         index-4 means cookie animation
  3823.         */
  3824.         if(index==1 || index=="1")
  3825.         {
  3826.             //document.getElementById('scanprogress_animation').src="animation_Registry.gif";
  3827.             //document.getElementById('scanprogress_animation').src="anim.gif";
  3828.             document.getElementById('scanprogress_animation').src="icon_blue_anim.gif";
  3829.             
  3830.         }
  3831.         if(index==2 || index=="2")
  3832.         {        
  3833.             //document.getElementById('scanprogress_animation').src="animation_File.gif";
  3834.             //document.getElementById('scanprogress_animation').src="anim.gif";
  3835.             document.getElementById('scanprogress_animation').src="icon_blue_anim.gif";
  3836.         }
  3837.         if(index==3 || index=="3")
  3838.         {        
  3839.             //document.getElementById('scanprogress_animation').src="animation_Memory.gif";
  3840.             //document.getElementById('scanprogress_animation').src="anim.gif";
  3841.             document.getElementById('scanprogress_animation').src="icon_blue_anim.gif";
  3842.         }
  3843.         if(index==4 || index=="4")
  3844.         {        
  3845.             //document.getElementById('scanprogress_animation').src="animation_Registry.gif";
  3846.             //document.getElementById('scanprogress_animation').src="anim.gif";
  3847.             document.getElementById('scanprogress_animation').src="icon_blue_anim.gif";
  3848.         }
  3849.         if(index==0 || index=="0")
  3850.         {        
  3851.             //document.getElementById('scanprogress_animation').src="spacer.gif";
  3852.             //document.getElementById('scanprogress_animation').src="anim_static.gif";
  3853.             document.getElementById('scanprogress_animation').src="icon_blue_anim_static.gif";
  3854.         }
  3855.         
  3856.     }
  3857.  
  3858.  
  3859.     //    Scan Schedule Page
  3860.  
  3861.  
  3862. //    RealTimeProtection Page
  3863. //  ------------------------------------
  3864.  
  3865.     function rtpm_setStatus(id,iconid,status,iconstatus)
  3866.     {
  3867.         if(iconstatus == "" || iconstatus == null)
  3868.         {
  3869.             //var str=document.all[iconid].src;
  3870.             //str.replace(/_.+\.png/,"_bad.png");
  3871.             //document.getElementBYId(iconid).src="images/centre.png";
  3872.             //document.all[iconid].src=str;
  3873.             if(id=="rtpm_status")
  3874.             {
  3875.                 document.all[id].bgcolor="#FF0000"
  3876.             }
  3877.         }else
  3878.         {
  3879.             //document.getElementBYId(iconid).src="images/centre.png";
  3880.             /*var str=document.all[iconid].src;
  3881.             str.replace(/_.+\.png/,"_good.png");
  3882.             document.all[iconid].src=str;
  3883.             */
  3884.         }
  3885.     
  3886.         //document.getElementBYId(id).innerText=status     
  3887.         document.all[id].innerHTML=status;
  3888.     }
  3889.     
  3890.     function rtpm_setStatusforid(id,events_no )
  3891.     {
  3892.         if(events_no>0)
  3893.         {
  3894.             //document.getElementById("rtpm_blocked_automatically").style.visibility = "visible"
  3895.             //document.getElementById("rtpm_blocked_manually").style.visibility = "visible"
  3896.             document.all["rtpm_blocked_automatically"].style.visibility = "visible";
  3897.             document.all["rtpm_blocked_manually"].style.visibility = "visible";
  3898.         }
  3899.         else
  3900.         {    
  3901.             //document.getElementById("rtpm_blocked_automatically").style.visibility = "hidden"
  3902.             document.all["rtpm_blocked_automatically"].style.visibility = "hidden";
  3903.             //document.getElementById("rtpm_blocked_manually").style.visibility = "hidden"    
  3904.             document.all["rtpm_blocked_manually"].style.visibility = "hidden";
  3905.         }
  3906.     }
  3907.  
  3908.  
  3909. //////////////setting status runtime/////////////////
  3910. ////    All Monitor page
  3911. //       -----------------------------------
  3912.  
  3913.     var prev_row=null;
  3914.     function monitors_add(name,desc,longdesc,status,manageble,mid)
  3915.     {
  3916.            prev_row=null;
  3917.             var thetable = document.getElementById('monitors_add_table');
  3918.            // document.all['monitors_activate'].disabled=true;
  3919.             var lastrow = thetable.rows.length;
  3920.             var row  = thetable.insertRow();
  3921.             row.monitorname=name;
  3922.             row.desc=desc;
  3923.             row.longdesc=longdesc;
  3924.             row.status=status;
  3925.             row.manageble=manageble;
  3926.             row.onclick=showMonitorDescription;
  3927.             row.mid=mid;
  3928.             row.setAttribute('id','monitor'+mid);
  3929.             row.setAttribute('height',49);
  3930.             var cell;
  3931.             cell = row.insertCell();
  3932.             cell.setAttribute('width',30);
  3933.             cell.setAttribute('valign','top');
  3934.             cell.setAttribute('align','center');
  3935.             //row.cells[0].style.borderLeft = '1px solid #ffffff';  
  3936.             //row.cells[0].style.borderTop = '1px solid #aaafb5';  
  3937.             row.cells[0].style.borderBottom = '2px solid #aaafb5';  
  3938.         
  3939.             
  3940.         
  3941.             
  3942.             if(status == 1)
  3943.             {
  3944.                 cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid+"'  src='ig_icon_green.png'  align='center'></p>";
  3945.                 //document.all['monitors_activate_icon'].src="deactivate.gif";
  3946.             }
  3947.             else
  3948.             {
  3949.                 cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid +"' src='ig_icon_red.png'  align='center'></p>";
  3950.                 //document.all['monitors_activate_icon'].src="deactivate.gif";
  3951.             }
  3952.             cell = row.insertCell();
  3953.             
  3954.             //row.cells[1].style.borderRight = '1px solid #ffffff';  
  3955.            // row.cells[1].style.borderTop = '1px solid #aaafb5';  
  3956.             row.cells[1].style.borderBottom = '2px solid #aaafb5';  
  3957.             cell.innerHTML ="<p style=margin-left:15px;><font class=nShowText ><strong>"+name+"</strong></font><font class=nShowText> <br>"+desc+"</font></p>";
  3958.             
  3959.             
  3960.             document.all['monitors_add_table'].style.cursor='hand';
  3961.             fillcolorinrow(row,lastrow);
  3962.             thetable.rows[0].click();
  3963.             
  3964.             //fillcolorinrow(thetable.rows[countid],parseInt(countid));
  3965.             
  3966.             
  3967.     }
  3968.     
  3969.     function monitors_setState(mid,status,monitortype)
  3970.     {
  3971.         //document.all['monitors_activate'].disabled=false;
  3972.         // monitortype=1 internet monitortype=2 system monitortype=3 application
  3973.             //alert(monitortype);        
  3974.                 
  3975.         var str='monitor'+mid;
  3976.         var row=document.all[str];
  3977.         if(row==null)
  3978.         {
  3979.             return;
  3980.         }
  3981.         row.status=status;
  3982.         str='img_'+mid;
  3983.         if(row==prev_row)
  3984.         {
  3985.             //selected
  3986.             if(parseInt(row.status)==1)
  3987.             {
  3988.                 //document.all['monitors_activate'].innerText=ID_DEACTIVATE;
  3989.                 //document.all['monitors_activate_icon'].src="deactivate.gif";
  3990.                 
  3991.                 document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>";
  3992.                 if (monitortype==1)                
  3993.                 {
  3994.                     
  3995.                     document.all[str].src="isg_icon_green.png";
  3996.                     document.all['idleftIGStatus'].src="ig_details_left_green.png";
  3997.                 }
  3998.                 if (monitortype==2)
  3999.                 {
  4000.                    
  4001.                     document.all[str].src="ssg_icon_green.png";
  4002.                     document.all['idleftSGStatus'].src="sg_details_left_green.png";
  4003.                 }
  4004.                 if (monitortype==3)
  4005.                 {
  4006.                    
  4007.                     document.all[str].src="asg_icon_green.png";
  4008.                     document.all['idleftAGStatus'].src="ag_details_left_green.png";
  4009.                 }
  4010.             }
  4011.             else
  4012.             {
  4013.                 //document.all['monitors_activate'].innerText=ID_ACTIVATE;
  4014.                 //document.all['monitors_activate_icon'].src="activate.gif";
  4015.                 
  4016.                 
  4017.                 
  4018.                 if (monitortype==1)                
  4019.                 {
  4020.                     document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>";
  4021.                     document.all[str].src="isg_icon_red.png";
  4022.                      document.all['idleftIGStatus'].src="ig_details_left_red.png";
  4023.                 }
  4024.                 if (monitortype==2)
  4025.                 {
  4026.                     document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activatesys\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>";
  4027.                     document.all[str].src="ssg_icon_red.png";
  4028.                      document.all['idleftSGStatus'].src="sg_details_left_red.png";
  4029.                 }
  4030.                 if (monitortype==3)
  4031.                 {
  4032.                     document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activateapp\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>";
  4033.                     document.all[str].src="asg_icon_red.png";
  4034.                      document.all['idleftAGStatus'].src="ag_details_left_red.png";
  4035.                 }
  4036.             }
  4037.             row.click();
  4038.         }
  4039.     }
  4040.     
  4041.     function monitors_getselected()  //returns string
  4042.     {        
  4043.         if(prev_row!=null){
  4044.             return prev_row.mid;
  4045.         }else{
  4046.             return 0;
  4047.         }
  4048.     }
  4049. function showMonitorDescription(){
  4050.     var elem=event.srcElement;
  4051.     var id;
  4052.     do{
  4053.         id=elem.id;
  4054.         elem=elem.parentElement;
  4055.     }while(! (document.all[id] && id.search('monitor')>=0));
  4056.     var row=document.all[id];
  4057.     var strStatus='';
  4058.     if(row.status==1)
  4059.     {
  4060.         strStatus='<font color=green>'+ID_ACTIVE+'</font>';
  4061.     }
  4062.     else
  4063.     {
  4064.         strStatus='<font color=darkred>'+ID_INACTIVE+'</font>';
  4065.     }
  4066.         document.all["Guard_Name"].innerHTML=row.monitorname;
  4067.         document.all["Guard_Status"].innerHTML=strStatus;
  4068.         
  4069. //    document.all['show_description'].innerHTML  = '<b>'+row.monitorname+'</b><br><b>'+ID_STATUS+'</b> '+strStatus+'<br><b>'+ID_SPY_DESC+'</b> '+row.longdesc;
  4070.  
  4071. document.all['show_description'].innerHTML  = row.longdesc;
  4072.     
  4073.    
  4074.     if(parseInt(row.status)==1)
  4075.     {
  4076.         //document.all['monitors_activate'].innerText=ID_DEACTIVATE;
  4077.         //document.all['monitors_activate_icon'].src="deactivate.gif";
  4078.         document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>";
  4079.         //alert(document.all['monitors_activate'].innerHTML);
  4080.         
  4081.     }
  4082.     else
  4083.     {
  4084.         //document.all['monitors_activate'].innerText=ID_ACTIVATE;
  4085.         //document.all['monitors_activate_icon'].src="activate.gif";
  4086.         document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>";
  4087.         //alert(document.all['monitors_activate'].innerHTML);
  4088.     }
  4089.     if(parseInt(row.manageble) == 0)
  4090.     {    
  4091.         document.all['monitors_manage'].disabled=true;
  4092.     }
  4093.     else
  4094.     {
  4095.         document.all['monitors_manage'].disabled=false;
  4096.     }
  4097.     highlightRow(row);
  4098. }
  4099.  
  4100. function highlightRow(row)
  4101. {
  4102.     
  4103.     if(prev_row != row)
  4104.     {
  4105.         if(prev_row!=null)
  4106.         {
  4107.                 
  4108.                 
  4109.                 
  4110. //            if(prev_row.rowIndex%2==1)
  4111. //            {
  4112. //                
  4113. //                //prev_row.style.backgroundColor="#f1f6ff";
  4114. //                //prev_row.style.backgroundColor="#ffffff";
  4115. //                //prev_row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4116. //              //  prev_row.cells[0].style.borderTop = '2px solid #ffffff';  
  4117. //               // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5';  
  4118. //               // prev_row.cells[1].style.borderRight = '1px solid #ffffff';  
  4119. //              //  prev_row.cells[1].style.borderTop = '2px solid #ffffff';  
  4120. //                //prev_row.cells[1].style.borderBottom = '1px solid #aaafb5';  
  4121. //            }
  4122. //            else
  4123. //            {
  4124. //                
  4125. //                //prev_row.style.backgroundColor="#f1f6ff";
  4126. //                //prev_row.style.backgroundColor="#ffffff";
  4127. //                //prev_row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4128. //               // prev_row.cells[0].style.borderTop = '2px solid #ffffff';  
  4129. //               // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5';  
  4130. //                //prev_row.cells[1].style.borderRight = '1px solid #ffffff';  
  4131. //               // prev_row.cells[1].style.borderTop = '2px solid #ffffff';  
  4132. //              //  prev_row.cells[1].style.borderBottom = '1px solid #aaafb5';  
  4133. //                
  4134. //            }
  4135.             //prev_row.style.backgroundColor="#d1e7ff";
  4136.             
  4137.              //prev_row.cells[0].style.borderBottom = '2px solid #ffffff';
  4138.                 //prev_row.cells[1].style.borderBottom = '2px solid #ffffff';
  4139.         
  4140.             prev_row.style.backgroundColor="#ffffff";
  4141.         }
  4142.         
  4143.         
  4144.         //row.className ="borderclass";
  4145.         //row.style.cellpadding=0;
  4146.         //row.style.cellspacing=0;
  4147.        
  4148.         
  4149. //        row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4150.  
  4151. //        row.cells[0].style.borderTop = '2px solid #aaafb5';  
  4152. //        row.cells[0].style.borderBottom = '2px solid #ffffff';  
  4153. //        
  4154. //        row.cells[1].style.borderRight = '1px solid #ffffff';  
  4155. //        row.cells[1].style.borderTop = '2px solid #aaafb5';  
  4156. //        row.cells[1].style.borderBottom = '2px solid #ffffff';  
  4157.         
  4158. //        row.style.backgroundColor="#ffffff";
  4159.  
  4160.         row.style.backgroundColor="#e6edf5";
  4161.         //alert(row.mid);
  4162.         
  4163.         var imgstring =eval(window.document.images['img_' + row.mid]);
  4164.             if(row.status == 1)
  4165.             {
  4166.                  imgstring.src='isg_icon_green.png';
  4167.                  idleftIGStatus.src='ig_details_left_green.png';
  4168.             }
  4169.             else
  4170.             {
  4171.                 imgstring.src='isg_icon_red.png';
  4172.                 idleftIGStatus.src='ig_details_left_red.png';
  4173.                 
  4174.             }
  4175.        // imgstring.src='se_ig_list_icon_i.png';
  4176.         
  4177.         if(prev_row!=null)    
  4178.         {
  4179.            // alert(prev_row.mid);
  4180.             var previmgstring=eval(window.document.images['img_' + prev_row.mid]);
  4181.             
  4182.             if(prev_row.status == 1)
  4183.             {
  4184.                  previmgstring.src='ig_icon_green.png';
  4185.             }
  4186.             else
  4187.             {
  4188.                 previmgstring.src='ig_icon_red.png';
  4189.                 
  4190.             }
  4191.     
  4192.         }  
  4193.       //  alert(row.status);
  4194.         
  4195.         //row.cells[0].className ="borderclassleft";
  4196.         //row.cells[1].className ="borderclassright";
  4197.         //row.cells[1].style.border = '1px solid #000000';  
  4198.         //alert(row.id)
  4199.         
  4200.         prev_row=row;
  4201.         //row.click();
  4202.     }
  4203. }
  4204. function fillcolorinrow(row,lastrow)
  4205. {
  4206.     if(lastrow%2==1)
  4207.     {
  4208.         
  4209.     //    row.style.backgroundColor="#f3f7ff";
  4210.         row.style.backgroundColor="#ffffff";
  4211.         
  4212.     }
  4213.     else
  4214.     {
  4215.         
  4216.         //row.style.backgroundColor="#d1e7ff";
  4217.         row.style.backgroundColor="#ffffff";
  4218.         
  4219.     }
  4220.     
  4221. }
  4222.  
  4223.  
  4224.  
  4225.  
  4226.  
  4227.  
  4228.  
  4229.  
  4230.     var prev_row=null;
  4231.     function monitors_addApplication(name,desc,longdesc,status,manageble,mid)
  4232.     {
  4233.            prev_row=null;
  4234.             var thetable = document.getElementById('monitors_add_table');
  4235.            // document.all['monitors_activate'].disabled=true;
  4236.             var lastrow = thetable.rows.length;
  4237.             var row  = thetable.insertRow();
  4238.             row.monitorname=name;
  4239.             row.desc=desc;
  4240.             row.longdesc=longdesc;
  4241.             row.status=status;
  4242.             row.manageble=manageble;
  4243.             row.onclick=showApplicationMonitorDescription;
  4244.             row.mid=mid;
  4245.             row.setAttribute('id','monitor'+mid);
  4246.             row.setAttribute('height',49);
  4247.             var cell;
  4248.             cell = row.insertCell();
  4249.             cell.setAttribute('width',30);
  4250.             cell.setAttribute('valign','top');
  4251.             cell.setAttribute('align','center');
  4252.             //row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4253.             //row.cells[0].style.borderTop = '1px solid #aaafb5';  
  4254.             row.cells[0].style.borderBottom = '2px solid #aaafb5';  
  4255.         
  4256.             
  4257.         
  4258.             
  4259.             if(status == 1)
  4260.             {
  4261.                 cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid+"'  src='ag_icon_green.png'  align='center'></p>";
  4262.                 //document.all['monitors_activate_icon'].src="deactivate.gif";
  4263.             }
  4264.             else
  4265.             {
  4266.                 cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid +"' src='ag_icon_red.png'  align='center'></p>";
  4267.                 //document.all['monitors_activate_icon'].src="deactivate.gif";
  4268.             }
  4269.             cell = row.insertCell();
  4270.             
  4271.             //row.cells[1].style.borderRight = '1px solid #ffffff';  
  4272.            // row.cells[1].style.borderTop = '1px solid #aaafb5';  
  4273.             row.cells[1].style.borderBottom = '2px solid #aaafb5';  
  4274.             cell.innerHTML ="<p style=margin-left:15px;><font class=nShowText ><strong>"+name+"</strong></font><font class=nShowText> <br>"+desc+"</font></p>";
  4275.             
  4276.             
  4277.             document.all['monitors_add_table'].style.cursor='hand';
  4278.             fillcolorinrow(row,lastrow);
  4279.             thetable.rows[0].click();
  4280.             
  4281.             //fillcolorinrow(thetable.rows[countid],parseInt(countid));
  4282.             
  4283.             
  4284.     }
  4285.     function showApplicationMonitorDescription(){
  4286.     var elem=event.srcElement;
  4287.     var id;
  4288.     do{
  4289.         id=elem.id;
  4290.         elem=elem.parentElement;
  4291.     }while(! (document.all[id] && id.search('monitor')>=0));
  4292.     var row=document.all[id];
  4293.     var strStatus='';
  4294.     if(row.status==1)
  4295.     {
  4296.         strStatus='<font color=green>'+ID_ACTIVE+'</font>';
  4297.     }
  4298.     else
  4299.     {
  4300.         strStatus='<font color=darkred>'+ID_INACTIVE+'</font>';
  4301.     }
  4302.         document.all["Guard_Name"].innerHTML=row.monitorname;
  4303.         document.all["Guard_Status"].innerHTML=strStatus;
  4304.         
  4305. //    document.all['show_description'].innerHTML  = '<b>'+row.monitorname+'</b><br><b>'+ID_STATUS+'</b> '+strStatus+'<br><b>'+ID_SPY_DESC+'</b> '+row.longdesc;
  4306.  
  4307. document.all['show_description'].innerHTML  = row.longdesc;
  4308.     
  4309.    
  4310.     if(parseInt(row.status)==1)
  4311.     {
  4312.         //document.all['monitors_activate'].innerText=ID_DEACTIVATE;
  4313.         //document.all['monitors_activate_icon'].src="deactivate.gif";
  4314.         document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>";
  4315.         //alert(document.all['monitors_activate'].innerHTML);
  4316.         
  4317.     }
  4318.     else
  4319.     {
  4320.         //document.all['monitors_activate'].innerText=ID_ACTIVATE;
  4321.         //document.all['monitors_activate_icon'].src="activate.gif";
  4322.         document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>";
  4323.         //alert(document.all['monitors_activate'].innerHTML);
  4324.     }
  4325.     if(parseInt(row.manageble) == 0)
  4326.     {    
  4327.         document.all['monitors_manage'].disabled=true;
  4328.     }
  4329.     else
  4330.     {
  4331.         document.all['monitors_manage'].disabled=false;
  4332.     }
  4333.     highlightRowapplication(row);
  4334. }
  4335.  
  4336. function highlightRowapplication(row)
  4337. {
  4338.     
  4339.     if(prev_row != row)
  4340.     {
  4341.         if(prev_row!=null)
  4342.         {
  4343.                 
  4344.                 
  4345.                 
  4346. //            if(prev_row.rowIndex%2==1)
  4347. //            {
  4348. //                
  4349. //                //prev_row.style.backgroundColor="#f1f6ff";
  4350. //                //prev_row.style.backgroundColor="#ffffff";
  4351. //                //prev_row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4352. //              //  prev_row.cells[0].style.borderTop = '2px solid #ffffff';  
  4353. //               // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5';  
  4354. //               // prev_row.cells[1].style.borderRight = '1px solid #ffffff';  
  4355. //              //  prev_row.cells[1].style.borderTop = '2px solid #ffffff';  
  4356. //                //prev_row.cells[1].style.borderBottom = '1px solid #aaafb5';  
  4357. //            }
  4358. //            else
  4359. //            {
  4360. //                
  4361. //                //prev_row.style.backgroundColor="#f1f6ff";
  4362. //                //prev_row.style.backgroundColor="#ffffff";
  4363. //                //prev_row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4364. //               // prev_row.cells[0].style.borderTop = '2px solid #ffffff';  
  4365. //               // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5';  
  4366. //                //prev_row.cells[1].style.borderRight = '1px solid #ffffff';  
  4367. //               // prev_row.cells[1].style.borderTop = '2px solid #ffffff';  
  4368. //              //  prev_row.cells[1].style.borderBottom = '1px solid #aaafb5';  
  4369. //                
  4370. //            }
  4371.             //prev_row.style.backgroundColor="#d1e7ff";
  4372.             
  4373.              //prev_row.cells[0].style.borderBottom = '2px solid #ffffff';
  4374.                 //prev_row.cells[1].style.borderBottom = '2px solid #ffffff';
  4375.         
  4376.             prev_row.style.backgroundColor="#ffffff";
  4377.         }
  4378.         
  4379.         
  4380.         //row.className ="borderclass";
  4381.         //row.style.cellpadding=0;
  4382.         //row.style.cellspacing=0;
  4383.        
  4384.         
  4385. //        row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4386.  
  4387. //        row.cells[0].style.borderTop = '2px solid #aaafb5';  
  4388. //        row.cells[0].style.borderBottom = '2px solid #ffffff';  
  4389. //        
  4390. //        row.cells[1].style.borderRight = '1px solid #ffffff';  
  4391. //        row.cells[1].style.borderTop = '2px solid #aaafb5';  
  4392. //        row.cells[1].style.borderBottom = '2px solid #ffffff';  
  4393.         
  4394. //        row.style.backgroundColor="#ffffff";
  4395.  
  4396.         row.style.backgroundColor="#e6edf5";
  4397.         
  4398.         
  4399.         var imgstring =eval(window.document.images['img_' + row.mid]);
  4400.         if(row.status == 1)
  4401.         {
  4402.              imgstring.src='asg_icon_green.png';
  4403.              idleftAGStatus.src='ag_details_left_green.png';
  4404.         }
  4405.         else
  4406.         {
  4407.             imgstring.src='asg_icon_red.png';
  4408.             idleftAGStatus.src='ag_details_left_red.png';
  4409.             
  4410.         }
  4411.        // imgstring.src='se_ag_list_icon_i.png';
  4412.         
  4413.         if(prev_row!=null)    
  4414.         {
  4415.             
  4416.             var previmgstring=eval(window.document.images['img_' + prev_row.mid]);
  4417.             
  4418.             if(prev_row.status == 1)
  4419.             {
  4420.                  previmgstring.src='ag_icon_green.png';
  4421.             }
  4422.             else
  4423.             {
  4424.                 previmgstring.src='ag_icon_red.png';
  4425.                 
  4426.             }
  4427.             
  4428.            
  4429.         }  
  4430.         
  4431.         
  4432.         //row.cells[0].className ="borderclassleft";
  4433.         //row.cells[1].className ="borderclassright";
  4434.         //row.cells[1].style.border = '1px solid #000000';  
  4435.         //alert(row.id)
  4436.         
  4437.         prev_row=row;
  4438.         //row.click();
  4439.     }
  4440. }
  4441.  
  4442.  
  4443.     var prev_row=null;
  4444.     function monitors_addSystem(name,desc,longdesc,status,manageble,mid)
  4445.     {
  4446.            prev_row=null;
  4447.             var thetable = document.getElementById('monitors_add_table');
  4448.            // document.all['monitors_activate'].disabled=true;
  4449.             var lastrow = thetable.rows.length;
  4450.             var row  = thetable.insertRow();
  4451.             row.monitorname=name;
  4452.             row.desc=desc;
  4453.             row.longdesc=longdesc;
  4454.             row.status=status;
  4455.             row.manageble=manageble;
  4456.             row.onclick=showSystemMonitorDescription;
  4457.             row.mid=mid;
  4458.             row.setAttribute('id','monitor'+mid);
  4459.             row.setAttribute('height',49);
  4460.             var cell;
  4461.             cell = row.insertCell();
  4462.             cell.setAttribute('width',30);
  4463.             cell.setAttribute('valign','top');
  4464.             cell.setAttribute('align','center');
  4465.             //row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4466.             //row.cells[0].style.borderTop = '1px solid #aaafb5';  
  4467.             row.cells[0].style.borderBottom = '2px solid #aaafb5';  
  4468.         
  4469.             
  4470.         
  4471.             
  4472.             if(status == 1)
  4473.             {
  4474.                 cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid+"'  src='sg_icon_green.png'  align='center'></p>";
  4475.                 //document.all['monitors_activate_icon'].src="deactivate.gif";
  4476.             }
  4477.             else
  4478.             {
  4479.                 cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid +"' src='sg_icon_red.png'  align='center'></p>";
  4480.                 //document.all['monitors_activate_icon'].src="deactivate.gif";
  4481.             }
  4482.             cell = row.insertCell();
  4483.             
  4484.             //row.cells[1].style.borderRight = '1px solid #ffffff';  
  4485.            // row.cells[1].style.borderTop = '1px solid #aaafb5';  
  4486.             row.cells[1].style.borderBottom = '2px solid #aaafb5';  
  4487.             cell.innerHTML ="<p style=margin-left:15px;><font class=nShowText ><strong>"+name+"</strong></font><font class=nShowText> <br>"+desc+"</font></p>";
  4488.             
  4489.             
  4490.             document.all['monitors_add_table'].style.cursor='hand';
  4491.             fillcolorinrow(row,lastrow);
  4492.             thetable.rows[0].click();
  4493.             
  4494.             //fillcolorinrow(thetable.rows[countid],parseInt(countid));
  4495.             
  4496.             
  4497.     }
  4498. function showSystemMonitorDescription(){
  4499.     var elem=event.srcElement;
  4500.     var id;
  4501.     do{
  4502.         id=elem.id;
  4503.         elem=elem.parentElement;
  4504.     }while(! (document.all[id] && id.search('monitor')>=0));
  4505.     var row=document.all[id];
  4506.     var strStatus='';
  4507.     if(row.status==1)
  4508.     {
  4509.         strStatus='<font color=green>'+ID_ACTIVE+'</font>';
  4510.     }
  4511.     else
  4512.     {
  4513.         strStatus='<font color=darkred>'+ID_INACTIVE+'</font>';
  4514.     }
  4515.         document.all["Guard_Name"].innerHTML=row.monitorname;
  4516.         document.all["Guard_Status"].innerHTML=strStatus;
  4517.         
  4518. //    document.all['show_description'].innerHTML  = '<b>'+row.monitorname+'</b><br><b>'+ID_STATUS+'</b> '+strStatus+'<br><b>'+ID_SPY_DESC+'</b> '+row.longdesc;
  4519.  
  4520.     document.all['show_description'].innerHTML  = row.longdesc;
  4521.     
  4522.    
  4523.     if(parseInt(row.status)==1)
  4524.     {
  4525.         //document.all['monitors_activate'].innerText=ID_DEACTIVATE;
  4526.         //document.all['monitors_activate_icon'].src="deactivate.gif";
  4527.         document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>";
  4528.         //alert(document.all['monitors_activate'].innerHTML);
  4529.         
  4530.     }
  4531.     else
  4532.     {
  4533.         //document.all['monitors_activate'].innerText=ID_ACTIVATE;
  4534.         //document.all['monitors_activate_icon'].src="activate.gif";
  4535.         document.all['monitors_activate1'].innerHTML="<a href=\"#\"  hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>";
  4536.         //alert(document.all['monitors_activate'].innerHTML);
  4537.     }
  4538.     if(parseInt(row.manageble) == 0)
  4539.     {    
  4540.         document.all['monitors_manage'].disabled=true;
  4541.     }
  4542.     else
  4543.     {
  4544.         document.all['monitors_manage'].disabled=false;
  4545.     }
  4546.     highlightRowSystem(row);
  4547. }
  4548.  
  4549. function highlightRowSystem(row)
  4550. {
  4551.     
  4552.     if(prev_row != row)
  4553.     {
  4554.         if(prev_row!=null)
  4555.         {
  4556.                 
  4557.                 
  4558.                 
  4559. //            if(prev_row.rowIndex%2==1)
  4560. //            {
  4561. //                
  4562. //                //prev_row.style.backgroundColor="#f1f6ff";
  4563. //                //prev_row.style.backgroundColor="#ffffff";
  4564. //                //prev_row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4565. //              //  prev_row.cells[0].style.borderTop = '2px solid #ffffff';  
  4566. //               // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5';  
  4567. //               // prev_row.cells[1].style.borderRight = '1px solid #ffffff';  
  4568. //              //  prev_row.cells[1].style.borderTop = '2px solid #ffffff';  
  4569. //                //prev_row.cells[1].style.borderBottom = '1px solid #aaafb5';  
  4570. //            }
  4571. //            else
  4572. //            {
  4573. //                
  4574. //                //prev_row.style.backgroundColor="#f1f6ff";
  4575. //                //prev_row.style.backgroundColor="#ffffff";
  4576. //                //prev_row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4577. //               // prev_row.cells[0].style.borderTop = '2px solid #ffffff';  
  4578. //               // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5';  
  4579. //                //prev_row.cells[1].style.borderRight = '1px solid #ffffff';  
  4580. //               // prev_row.cells[1].style.borderTop = '2px solid #ffffff';  
  4581. //              //  prev_row.cells[1].style.borderBottom = '1px solid #aaafb5';  
  4582. //                
  4583. //            }
  4584.             //prev_row.style.backgroundColor="#d1e7ff";
  4585.             
  4586.              //prev_row.cells[0].style.borderBottom = '2px solid #ffffff';
  4587.                 //prev_row.cells[1].style.borderBottom = '2px solid #ffffff';
  4588.         
  4589.             prev_row.style.backgroundColor="#ffffff";
  4590.         }
  4591.         
  4592.         
  4593.         //row.className ="borderclass";
  4594.         //row.style.cellpadding=0;
  4595.         //row.style.cellspacing=0;
  4596.        
  4597.         
  4598. //        row.cells[0].style.borderLeft = '1px solid #ffffff';  
  4599.  
  4600. //        row.cells[0].style.borderTop = '2px solid #aaafb5';  
  4601. //        row.cells[0].style.borderBottom = '2px solid #ffffff';  
  4602. //        
  4603. //        row.cells[1].style.borderRight = '1px solid #ffffff';  
  4604. //        row.cells[1].style.borderTop = '2px solid #aaafb5';  
  4605. //        row.cells[1].style.borderBottom = '2px solid #ffffff';  
  4606.         
  4607. //        row.style.backgroundColor="#ffffff";
  4608.  
  4609.         row.style.backgroundColor="#e6edf5";
  4610.         
  4611.         
  4612.         var imgstring =eval(window.document.images['img_' + row.mid]);
  4613.         if(row.status == 1)
  4614.         {
  4615.              imgstring.src='ssg_icon_green.png';
  4616.              idleftSGStatus.src='sg_details_left_green.png';
  4617.         }
  4618.         else
  4619.         {
  4620.             imgstring.src='ssg_icon_red.png';
  4621.             idleftSGStatus.src='sg_details_left_red.png';
  4622.             
  4623.         }
  4624.        // imgstring.src='se_sg_list_icon_i.png';
  4625.         
  4626.         if(prev_row!=null)    
  4627.         {
  4628.             
  4629.             var previmgstring=eval(window.document.images['img_' + prev_row.mid]);
  4630.             
  4631.             if(prev_row.status == 1)
  4632.             {
  4633.                  previmgstring.src='sg_icon_green.png';
  4634.             }
  4635.             else
  4636.             {
  4637.                 previmgstring.src='sg_icon_red.png';
  4638.                 
  4639.             }
  4640.             
  4641.            
  4642.         }  
  4643.         
  4644.         
  4645.         //row.cells[0].className ="borderclassleft";
  4646.         //row.cells[1].className ="borderclassright";
  4647.         //row.cells[1].style.border = '1px solid #000000';  
  4648.         //alert(row.id)
  4649.         
  4650.         prev_row=row;
  4651.         //row.click();
  4652.     }
  4653. }
  4654.  
  4655. /////////////////////////////////////////////////////////////////////////////////////////
  4656.  
  4657. function show(id)
  4658. {
  4659.      
  4660.     //document.getElementById(id).style.visibility="visible"
  4661.     document.all[id].style.visibility="visible";
  4662. }
  4663.  
  4664. function hide(id)
  4665. {
  4666.      
  4667.     //document.getElementById(id).style.visibility="hidden"
  4668.         document.all[id].style.visibility="hidden";
  4669. }
  4670.  
  4671.  
  4672. //Schedule Page
  4673.  
  4674. function showOptions()
  4675. {
  4676.     
  4677.     
  4678.     if(document.all["scanschedule_schedule_task"].selectedIndex == 0)
  4679.         {
  4680.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_daily'].innerHTML; 
  4681.         document.all["timetable"].style["visibility"]="visible";
  4682.         document.all["mytablerow"].style["visibility"]="visible";
  4683.         }
  4684.         
  4685.     else if(document.all["scanschedule_schedule_task"].selectedIndex == 1)
  4686.         {
  4687.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_weekly'].innerHTML;
  4688.         document.all["timetable"].style["visibility"]="visible";
  4689.         document.all["mytablerow"].style["visibility"]="visible";
  4690.         }
  4691.     else if(document.all["scanschedule_schedule_task"].selectedIndex == 2)
  4692.         {
  4693.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_month'].innerHTML;
  4694.         document.all["timetable"].style["visibility"]="visible";
  4695.         document.all["mytablerow"].style["visibility"]="visible";
  4696.         }
  4697.      else if(document.all["scanschedule_schedule_task"].selectedIndex ==3){
  4698.         document.all["timetable"].style["visibility"]="visible";
  4699.         document.all["mytablerow"].style["visibility"]="visible";
  4700.         document.all["options_td"].innerHTML =document.frames[0].document.all["schedule_once"].innerHTML; 
  4701.            Calendar.setup({
  4702.                 inputField     :    "scanschedule_once_every",      // id of the input field
  4703.                 ifFormat       :    "%m/%d/%Y",       // format of the input field
  4704.                 showsTime      :    false,            // will display a time selector
  4705.                 button         :    "scanschedule_once_every_button",   // trigger for the calendar (button ID)
  4706.                 singleClick    :    true,           // double-click mode
  4707.                 step           :    1              // show all years in drop-down boxes (instead of every other year as default)
  4708.             });
  4709.             
  4710.             
  4711.           
  4712.      }
  4713.     else if(document.all["scanschedule_schedule_task"].selectedIndex == 4)
  4714.     {
  4715.         document.all["options_td"].innerHTML = '<table  class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_STARTUP+'</td></tr></table>';
  4716.         
  4717.         document.all["timetable"].style["visibility"]="hidden";
  4718.         document.all["mytablerow"].style["visibility"]="hidden";
  4719.         
  4720.     
  4721.     }    
  4722.     else if(document.all["scanschedule_schedule_task"].selectedIndex == 5)
  4723.     {
  4724.         document.all["options_td"].innerHTML = '<table  class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_WINLOGON+'</td></tr></table>';
  4725.         document.all["timetable"].style["visibility"]="hidden";
  4726.         document.all["mytablerow"].style["visibility"]="hidden";    
  4727.     }    
  4728. }
  4729. /*function showScheduleOptions(type,str)//,lastexecutiontime,szExecutionTimes)
  4730. {
  4731.     
  4732.     //document.all['schedule_string'].innerHTML=str;
  4733.     //document.all['lastscandate'].innerHTML=lastexecutiontime;
  4734.     //document.all['timesexecuted'].innerHTML=szExecutionTimes + ' times';
  4735.     
  4736.     if(type == 1){
  4737.         document.all["scanschedule_schedule_task"].selectedIndex=0;
  4738.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_daily'].innerHTML; 
  4739.     }
  4740.     else if(type == 2){
  4741.         document.all["scanschedule_schedule_task"].selectedIndex=1;
  4742.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_weekly'].innerHTML;
  4743.     }
  4744.     else if(type == 3 ||type == 4){
  4745.         document.all["scanschedule_schedule_task"].selectedIndex=2;
  4746.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_month'].innerHTML;
  4747.     }
  4748.      else if(type ==0){
  4749.          document.all["scanschedule_schedule_task"].selectedIndex=3;
  4750.         document.all["options_td"].innerHTML =document.frames[0].document.all["schedule_once"].innerHTML; 
  4751.            Calendar.setup({
  4752.                 inputField     :    "scanschedule_once_every",      // id of the input field
  4753.                 ifFormat       :    "%m/%d/%Y",       // format of the input field
  4754.                 showsTime      :    false,            // will display a time selector
  4755.                 button         :    "scanschedule_once_every_button",   // trigger for the calendar (button ID)
  4756.                 singleClick    :    true,           // double-click mode
  4757.                 step           :    1                // show all years in drop-down boxes (instead of every other year as default)
  4758.             });
  4759.      }
  4760.     else if(type == 6){
  4761.         document.all["scanschedule_schedule_task"].selectedIndex=4;
  4762.         document.all["options_td"].innerHTML = '<table class="nText"><tr><td>'+ID_STARTUP+' </td></tr></table>';
  4763.     }
  4764.     else if(type == 7){
  4765.         document.all["scanschedule_schedule_task"].selectedIndex=5;
  4766.         document.all["options_td"].innerHTML = '<table  class="nText"><tr><td>'+ID_WINLOGON+'</td></tr></table>';
  4767.     }
  4768.     
  4769.     if(document.all["scanschedule_schedule_task"].selectedIndex == 4 || document.all["scanschedule_schedule_task"].selectedIndex == 5)
  4770.     {
  4771.     document.all["timetable"].style["visibility"]="hidden";
  4772.     document.all["mytablerow"].style["visibility"]="hidden";
  4773.     }
  4774. }
  4775. */
  4776.  
  4777. function showScheduleOptions(type,str,str1,lastexecutiontime)
  4778. {
  4779.     
  4780.     document.all['schedule_string'].innerHTML=str;
  4781.     document.all['lastscandate'].innerHTML=lastexecutiontime;
  4782.     document.all['timesexecuted'].innerHTML=str1 + ' times';
  4783.     
  4784.     if(type == 1){
  4785.         document.all["scanschedule_schedule_task"].selectedIndex=0;
  4786.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_daily'].innerHTML; 
  4787.     }
  4788.     else if(type == 2){
  4789.         document.all["scanschedule_schedule_task"].selectedIndex=1;
  4790.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_weekly'].innerHTML;
  4791.     }
  4792.     else if(type == 3 ||type == 4){
  4793.         document.all["scanschedule_schedule_task"].selectedIndex=2;
  4794.         document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_month'].innerHTML;
  4795.     }
  4796.      else if(type ==0){
  4797.      
  4798.          document.all["scanschedule_schedule_task"].selectedIndex=3;
  4799.         document.all["options_td"].innerHTML =document.frames[0].document.all["schedule_once"].innerHTML; 
  4800.            Calendar.setup({
  4801.                 inputField     :    "scanschedule_once_every",      // id of the input field
  4802.                 ifFormat       :    "%m/%d/%Y",       // format of the input field
  4803.                 showsTime      :    false,            // will display a time selector
  4804.                 button         :    "scanschedule_once_every_button",   // trigger for the calendar (button ID)
  4805.                 singleClick    :    true,           // double-click mode
  4806.                 step           :    1                // show all years in drop-down boxes (instead of every other year as default)
  4807.             });
  4808.      }
  4809.     else if(type == 6){
  4810.         document.all["scanschedule_schedule_task"].selectedIndex=4;
  4811.         document.all["options_td"].innerHTML = '<table  class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_STARTUP+' </td></tr></table>';
  4812.     }
  4813.     else if(type == 7){
  4814.         document.all["scanschedule_schedule_task"].selectedIndex=5;
  4815.         document.all["options_td"].innerHTML = '<table  class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_WINLOGON+'</td></tr></table>';
  4816.     }
  4817.     
  4818.     if(document.all["scanschedule_schedule_task"].selectedIndex == 4 || document.all["scanschedule_schedule_task"].selectedIndex == 5)
  4819.     {
  4820.     document.all["timetable"].style["visibility"]="hidden";
  4821.     document.all["mytablerow"].style["visibility"]="hidden";
  4822.     }
  4823. }
  4824.  
  4825. function setScheduleData_Daily(interval,hour,minute){
  4826.     document.all['scanschedule_daily_days'].selectedIndex=interval-1;
  4827.     if(hour>=12)
  4828.     {
  4829.         if (hour>12)
  4830.         {
  4831.             hour-=12;
  4832.             if(hour<10)hour='0'+hour;
  4833.             document.all['ampm'].value=ID_PM;
  4834.         }    
  4835.     }
  4836.     else
  4837.     {
  4838.         document.all['ampm'].value=ID_AM;
  4839.     }
  4840.     document.all['hours'].value=hour;
  4841.     document.all['min'].value=minute;
  4842. }
  4843. function setScheduleData_Weekly(interval,hour,minute,mon,tue,wed,thu,fri,sat,sun){
  4844.     document.all['scanschedule_weekly_days'].selectedIndex=interval-1;
  4845.     
  4846.     if(hour>=12)
  4847.     {
  4848.         if (hour>12)
  4849.         {
  4850.             hour-=12;
  4851.             if(hour<10)hour='0'+hour;
  4852.             document.all['ampm'].value=ID_PM;
  4853.         }
  4854.     }
  4855.     else
  4856.     {
  4857.         document.all['ampm'].value=ID_AM;
  4858.     }
  4859.     document.all['hours'].value=hour;
  4860.     document.all['min'].value=minute;
  4861.     if(mon=="1"){
  4862.         document.all['scanschedule_weekly_mon2'].checked=true;
  4863.     }
  4864.     if(tue=="1"){
  4865.         document.all['scanschedule_weekly_tue2'].checked=true;
  4866.     }
  4867.     if(wed=="1"){
  4868.         document.all['scanschedule_weekly_wed2'].checked=true;
  4869.     }
  4870.     if(thu=="1"){
  4871.         document.all['scanschedule_weekly_thu2'].checked=true;
  4872.     }
  4873.     if(fri=="1"){
  4874.         document.all['scanschedule_weekly_fri2'].checked=true;
  4875.     }
  4876.     if(sat=="1"){
  4877.         document.all['scanschedule_weekly_sat2'].checked=true;
  4878.     }
  4879.     if(sun=="1"){
  4880.         document.all['scanschedule_weekly_sun2'].checked=true;
  4881.     }
  4882. }
  4883. function setScheduleData_Monthly(hour,minute,choice,day,option1,week){
  4884.  
  4885.     if(hour>=12)
  4886.     {
  4887.         if (hour>12)
  4888.         {
  4889.             hour-=12;
  4890.             if(hour<10)hour='0'+hour;
  4891.             document.all['ampm'].value=ID_PM;
  4892.         }    
  4893.     }
  4894.     else
  4895.     {
  4896.         document.all['ampm'].value=ID_AM;
  4897.     }
  4898.     document.all['hours'].value=hour;
  4899.     document.all['min'].value=minute;
  4900.     if(choice=="1"){ 
  4901.        
  4902.         document.all['scanschedule_monthly_radio_day'].checked=true;
  4903.         document.all['scanschedule_monthly_day'].selectedIndex=parseInt(day);
  4904.     }
  4905.     else
  4906.     {
  4907.        
  4908.         document.all['scanschedule_monthly_radio_day2'].checked=true;
  4909.         document.all['scanschedule_monthly_which'].selectedIndex=parseInt(option1);        
  4910.         document.all['scanschedule_monthly_which_day'].selectedIndex=parseInt(week);
  4911.     }
  4912. }
  4913. function setScheduleData_Once(hour,minute,day,month,year){
  4914.  
  4915.  
  4916.        
  4917.        if(hour>=12)
  4918.     {
  4919.         if (hour>12)
  4920.         {
  4921.         hour-=12;
  4922.         if(hour<10)hour='0'+hour;
  4923.         document.all['ampm'].value=ID_PM;
  4924.         }
  4925.         
  4926.         
  4927.     }
  4928.     else
  4929.     {
  4930.         document.all['ampm'].value=ID_AM;
  4931.     }
  4932.     document.all['hours'].value=hour;
  4933.     document.all['min'].value=minute;
  4934.     if(parseInt(month)<10)
  4935.         month='0'+month;
  4936.     if(parseInt(day)<10)
  4937.         day='0'+day;
  4938.     
  4939.     document.all['scanschedule_once_every'].innerText=month+'/'+day+'/'+year;
  4940.  
  4941. }
  4942.  
  4943. var selectitem ="";
  4944. function selectItem(id)
  4945. {    
  4946.         if(id == document.all["hours"].id)
  4947.         {
  4948.                 document.all["hours"].style.backgroundColor = "#316AC5";
  4949.                 document.all["hours"].style.color = "white";
  4950.                 document.all["min"].style.backgroundColor = "white";
  4951.                 document.all["min"].style.color = "";
  4952.                 document.all["ampm"].style.backgroundColor = "white";
  4953.                 document.all["ampm"].style.color = "";
  4954.                 selectitem = "hours";
  4955.                 
  4956.         }
  4957.         else if(id == document.all["min"].id)
  4958.         {
  4959.                 document.all["hours"].style.backgroundColor = "white";
  4960.                 document.all["hours"].style.color = "";
  4961.                 document.all["min"].style.backgroundColor ="#316AC5";
  4962.                 document.all["min"].style.color = "white";
  4963.                 document.all["ampm"].style.backgroundColor = "white";
  4964.                 document.all["ampm"].style.color = "";
  4965.                 selectitem = "min";
  4966.         }
  4967.         else if(id == document.all["ampm"].id)
  4968.         {
  4969.                 document.all["hours"].style.backgroundColor = "white";
  4970.                 document.all["hours"].style.color = "";
  4971.                 document.all["min"].style.backgroundColor = "white";
  4972.                 document.all["min"].style.color = "";
  4973.                 document.all["ampm"].style.backgroundColor = "#316AC5";
  4974.                 document.all["ampm"].style.color = "white";
  4975.                 selectitem = "ampm";
  4976.         }
  4977. }
  4978. function  incrDecr(action)
  4979. {    
  4980. //var h =parseInt(document.getElementById("hours").value) ;
  4981. //var m = parseInt(document.getElementById("min").value) ;
  4982.  
  4983. var h =eval(document.getElementById("hours").value) ;
  4984. //static var mybool=true;
  4985. //static var mybool1=true;
  4986.  
  4987.  
  4988. if (isNaN(h) || h=="")
  4989. {
  4990.     mybool=false;
  4991.     
  4992.     h=0;
  4993.     
  4994.     //document.getElementById("hours").value=h;
  4995. };
  4996.  
  4997.  
  4998. var m = eval(document.getElementById("min").value) ;
  4999.  
  5000.  
  5001. if (isNaN(m) || m=="")
  5002. {
  5003.     m=0;
  5004.     
  5005.     //document.getElementById("min").value=m;
  5006. };
  5007.  
  5008.         if(action == 1)
  5009.         {
  5010.                 if(selectitem == "hours")
  5011.                 {    
  5012.                     
  5013.                     if (h == 12)
  5014.                     {
  5015.                         //document.getElementById("hours").value = "01";
  5016.                         document.getElementById("hours").value = "01";
  5017.                     }
  5018.                     else
  5019.                     {
  5020.                         if((h+1)<10)
  5021.                         {
  5022.                                         document.getElementById("hours").value = "0" + (h + 1);
  5023.                         }
  5024.                         else
  5025.                         {
  5026.                             document.getElementById("hours").value = h + 1;
  5027.                         }
  5028.                     }
  5029.                 }
  5030.                 else if(selectitem == "min")
  5031.                 {
  5032.                         if (m == 59)
  5033.                     {
  5034.                         document.getElementById("min").value = "00";
  5035.                     }
  5036.                     else
  5037.                     {
  5038.                         if((m+1)<10)
  5039.                         {
  5040.                                 document.getElementById("min").value ="0" + (m  + 1);
  5041.                         }
  5042.                         else
  5043.                         {
  5044.                                     document.getElementById("min").value =m  + 1;
  5045.                         }
  5046.                     }
  5047.                 }
  5048.                 else if(selectitem == "ampm")
  5049.                 {
  5050.                         if (document.getElementById("ampm").value == "AM")
  5051.                     {
  5052.                         document.getElementById("ampm").value = "PM";
  5053.                     }
  5054.                     else
  5055.                     {
  5056.                         document.getElementById("ampm").value = "AM";
  5057.                     }
  5058.                 }
  5059.         }
  5060.         else
  5061.         {
  5062.                  
  5063.                 if(selectitem == "hours")
  5064.                 {
  5065.                     
  5066.                     if (h == 1)
  5067.                     {
  5068.                         document.getElementById("hours").value = 12;
  5069.                     }
  5070.                     else
  5071.                     {
  5072.                         if((h-1)<10 && (h-1)>0)
  5073.                         {
  5074.  
  5075.                             document.getElementById("hours").value ="0" + (h  - 1);
  5076.                         }
  5077.                         else
  5078.                         {
  5079.                             
  5080.                             document.getElementById("hours").value = (h  - 1);
  5081.                         }
  5082.                     }
  5083.                 }
  5084.                 else if(selectitem == "min")
  5085.                 {
  5086.                     if (m == 0)
  5087.                     {
  5088.                         document.getElementById("min").value = 59;
  5089.                     }
  5090.                     else
  5091.                     {
  5092.                         if((m-1)<10)
  5093.                         {
  5094.                             document.getElementById("min").value = "0" + (m  - 1);
  5095.                         }
  5096.                         else
  5097.                         {
  5098.                                 document.getElementById("min").value =  (m  - 1);
  5099.                         }
  5100.                     }
  5101.                 }
  5102.                 else if(selectitem == "ampm")
  5103.                 {
  5104.                     if (document.getElementById("ampm").value == "AM")
  5105.                     {
  5106.                         document.getElementById("ampm").value = "PM";
  5107.                     }
  5108.                     else
  5109.                     {
  5110.                         document.getElementById("ampm").value = "AM";
  5111.                     }
  5112.                 }
  5113.         }
  5114. }
  5115.  
  5116. ////////////////////To show Calendar///////////////
  5117.  
  5118. function showCalender(){
  5119.     var cal1 = new calendar1(document.all['scanschedule_once_every']);
  5120.     cal1.year_scroll = true;
  5121.     cal1.time_comp = false;
  5122.     cal1.popup();
  5123. }
  5124. function alert_show(id,text,bShow)
  5125. {
  5126.     document.all[id].innerText=text;
  5127.     if(bShow==1)
  5128.     {
  5129.         document.all[id].style.visibility="visible";
  5130.     }else
  5131.     {
  5132.         document.all[id].style.visibility="hidden";
  5133.     }
  5134. }
  5135. function alert_setStatus(id,text)
  5136. {
  5137.     document.all[id].innerHTML=text;    
  5138. }
  5139.  
  5140. //function showQuickHelp()
  5141. //{
  5142. //    if(!scan_in_progress)
  5143. //        open('http://www.Uniblue.com');
  5144. //}
  5145. function autoupdater_check_button_click()
  5146. {
  5147.     var bSelected=document.all['settings_autoupdater_enable_autoupdates'].checked;
  5148.     if(bSelected)
  5149.     {
  5150.         document.all['settings_autoupdater_check_updates_time'].disabled=false;
  5151.         document.all['settings_autoupdater_check_updates_day'].disabled=false;
  5152.     }else
  5153.     {
  5154.         document.all['settings_autoupdater_check_updates_time'].disabled=true;
  5155.         document.all['settings_autoupdater_check_updates_day'].disabled=true;
  5156.     }
  5157. }
  5158.  
  5159. //menu handler events
  5160. function markallremove(mycheckbox)
  5161. {
  5162.     if (mycheckbox.checked)
  5163.     {
  5164.        var coll = document.all.tags("SELECT");
  5165.        
  5166.        if (coll.length>0) 
  5167.        {
  5168.         for (i=0; i<coll.length; i++)
  5169.         coll(i).selectedIndex=3;
  5170.        }
  5171.        
  5172.     }
  5173.     else
  5174.     {
  5175.         showScanResultsPage();
  5176.     }
  5177. }
  5178.  
  5179.  
  5180. function shutdown()
  5181. {
  5182.     
  5183.         document.all('shutdown').click();
  5184. }
  5185. function close()
  5186. {
  5187.     if(!scan_in_progress)
  5188.         document.all('close').click();
  5189. }
  5190. function minimize()
  5191. {
  5192.         
  5193.         document.all('minimize').click();
  5194. }
  5195.  
  5196. function blockprogram_clear()
  5197.     {
  5198.         var lstbox = document.getElementById('lstblockprograms');
  5199.         
  5200.         
  5201.         
  5202.         while (lstbox.options.length!=0)
  5203.         {
  5204.             
  5205.             lstbox.options[lstbox.options.length-1]=null; 
  5206.         }
  5207.         
  5208.         
  5209.         
  5210.         
  5211.     }
  5212. function addblockprogram(prgramname)
  5213. {
  5214.     
  5215.     var lstbox = document.getElementById('lstblockprograms');
  5216.     
  5217.     var lastRow = lstbox.options.length;
  5218.             
  5219.     
  5220.     
  5221.     lstbox.options[lastRow] = new Option(prgramname,prgramname);
  5222.  
  5223.     //new optio
  5224.  
  5225. }
  5226.  
  5227. function setCheckBox(checkboxid,checkboxvalue)
  5228. {
  5229.     //alert (checkboxid+checkboxvalue)
  5230.  
  5231.     var mybool;
  5232.     
  5233.     if (parseInt(checkboxvalue)==1)
  5234.     {
  5235.         mybool='checked';
  5236.     }
  5237.     else
  5238.     {
  5239.         mybool='';
  5240.     }
  5241.     document.getElementById(checkboxid).checked=mybool
  5242.     //alert(checkboxvalue);
  5243.     
  5244. }
  5245. function setvalues(mycheckbox)
  5246. {
  5247. window.document.all('checkboxid').value=mycheckbox.id; 
  5248. window.document.all('checkboxvalue').value=mycheckbox.checked; 
  5249. window.document.all('checkboxclick').click(); 
  5250. }
  5251.  
  5252. function getcheckboxid()
  5253. {
  5254.     return window.document.all('checkboxid').value;
  5255. }
  5256.  
  5257. function getcheckboxvalue()
  5258. {
  5259.     return window.document.all('checkboxvalue').value;
  5260. }
  5261.  
  5262. function getremoveprogamid()
  5263. {
  5264.  
  5265. var removelist;
  5266. var selectedid;
  5267.  
  5268. var lstbox = window.document.all('lstblockprograms');
  5269.  
  5270. selectedid=lstbox.options.selectedIndex;
  5271. //alert (selectedid);
  5272. var optioncount=lstbox.options.length;
  5273. if (optioncount == 0)
  5274. {
  5275.     removelist="-2"
  5276. }
  5277. else if (selectedid==-1)
  5278. {
  5279. removelist="-1";
  5280. }
  5281. else
  5282. {
  5283.  
  5284. removelist=lstbox.options[selectedid].value;
  5285. }
  5286.  
  5287.  
  5288.  
  5289.  
  5290.  
  5291. /*for (var i=lstbox.options.length-1; i>= 0;i--) 
  5292. {
  5293.     if (lstbox.options[i].selected) 
  5294.     {
  5295.         removelist+=lstbox.options[i].value  ;
  5296.     }
  5297.     
  5298. }
  5299.  
  5300. */
  5301. //alert(removelist);
  5302. return removelist;
  5303.  
  5304.  
  5305. }
  5306. function fillupdate(nPercentDone)
  5307. {
  5308.         
  5309.        // alert(nPercentDone);
  5310.        //window.alert(document.all("pb1").innerHTML)
  5311.        
  5312.         document.all("pb1").innerHTML+="<img src=pb2.png height=15>";
  5313.         
  5314.         
  5315.         //window.document.images[0].width=parseInt(window.document.images[0].width)+1;
  5316.         //window.document.images[0].focus();
  5317.         
  5318.     
  5319. }    
  5320.  
  5321. function uncheckmaindel(rowid)
  5322. {
  5323.          var rowChk=rowid+'_checkbox';
  5324.         
  5325.         if (window.document.getElementById(rowChk).checked)
  5326.         {
  5327.             window.document.getElementById(rowChk).checked=false;
  5328.         }
  5329.         else
  5330.         {
  5331.             if (!rowChk.checked)
  5332.             {
  5333.                 window.document.getElementById(rowChk).checked=true;
  5334.                 window.document.getElementById("checkall").checked=false;
  5335.             }
  5336.         }
  5337.        
  5338.         
  5339. }
  5340.  
  5341.  
  5342.  
  5343. function uncheckmain(mycheckbox)
  5344. {
  5345.     
  5346.     if (!mycheckbox.checked)
  5347.     {
  5348.         window.document.getElementById("checkall").checked=false;
  5349.     };
  5350. }
  5351.  
  5352. //function uncheckmain1(mycheckbox)
  5353. //{
  5354. //    if (!mycheckbox.checked)
  5355. //    {
  5356. //        window.document.getElementById("checkall").checked=false;
  5357. //    }
  5358. //    else
  5359. //    {
  5360. //        window.document.getElementById("checkall").checked=true;
  5361. //    }
  5362. //}
  5363.  
  5364. function summary_scanresultsclick()
  5365. {
  5366.     document.all('summary_scanresults').click();   //window.document
  5367. }
  5368. function InStr(strSearch, charSearchFor)
  5369. {
  5370.     for (i=0; i < strSearch.length; i++)
  5371.     {
  5372.           if (charSearchFor == Mid(strSearch, i, 1))
  5373.           {
  5374.                 return i;
  5375.           }
  5376.     }
  5377.     return -1;
  5378. }